]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/attr-on-trait.rs
Rollup merge of #106816 - TimNN:rental-remap, r=oli-obj
[rust.git] / tests / ui / proc-macro / attr-on-trait.rs
1 // run-pass
2 // aux-build:attr-on-trait.rs
3
4 extern crate attr_on_trait;
5
6 use attr_on_trait::foo;
7
8 trait Foo {
9     #[foo]
10     fn foo() {}
11 }
12
13 impl Foo for i32 {
14     fn foo(&self) {}
15 }
16
17 fn main() {
18     3i32.foo();
19 }