diff options
Diffstat (limited to 'tests/ui/proc-macro/attributes-on-definitions.rs')
-rw-r--r-- | tests/ui/proc-macro/attributes-on-definitions.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/attributes-on-definitions.rs b/tests/ui/proc-macro/attributes-on-definitions.rs new file mode 100644 index 000000000..c0733c8b4 --- /dev/null +++ b/tests/ui/proc-macro/attributes-on-definitions.rs @@ -0,0 +1,12 @@ +// check-pass +// aux-build:attributes-on-definitions.rs + +#![forbid(unsafe_code)] + +extern crate attributes_on_definitions; + +attributes_on_definitions::with_attrs!(); +//~^ WARN use of deprecated +// No errors about the use of unstable and unsafe code inside the macro. + +fn main() {} |