diff options
Diffstat (limited to 'tests/ui/proc-macro/attr-args.rs')
-rw-r--r-- | tests/ui/proc-macro/attr-args.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/attr-args.rs b/tests/ui/proc-macro/attr-args.rs new file mode 100644 index 000000000..764f507ab --- /dev/null +++ b/tests/ui/proc-macro/attr-args.rs @@ -0,0 +1,13 @@ +// run-pass +// aux-build:attr-args.rs + +#![allow(warnings)] + +extern crate attr_args; +use attr_args::{attr_with_args, identity}; + +#[attr_with_args(text = "Hello, world!")] +fn foo() {} + +#[identity(fn main() { assert_eq!(foo(), "Hello, world!"); })] +struct Dummy; |