Debian Codegraph @

third_party/rust/extend/tests/compile_pass/pub_impl.rs

raw
1 mod a {
2 use extend::ext;
3
4 #[ext]
5 pub impl i32 {
6 fn foo() -> Foo { Foo }
7 }
8
9 pub struct Foo;
10 }
11
12 fn main() {
13 use a::i32Ext;
14 i32::foo();
15 }