diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/proc-macro/add-impl.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/add-impl.rs b/src/test/ui/proc-macro/add-impl.rs new file mode 100644 index 000000000..ff2897a5e --- /dev/null +++ b/src/test/ui/proc-macro/add-impl.rs @@ -0,0 +1,14 @@ +// run-pass +// aux-build:add-impl.rs + +#[macro_use] +extern crate add_impl; + +#[derive(AddImpl)] +struct B; + +fn main() { + B.foo(); + foo(); + bar::foo(); +} |