diff options
Diffstat (limited to 'tests/ui/proc-macro/no-macro-use-attr.rs')
-rw-r--r-- | tests/ui/proc-macro/no-macro-use-attr.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/no-macro-use-attr.rs b/tests/ui/proc-macro/no-macro-use-attr.rs new file mode 100644 index 000000000..a8a8fa4e1 --- /dev/null +++ b/tests/ui/proc-macro/no-macro-use-attr.rs @@ -0,0 +1,10 @@ +// aux-build:test-macros.rs + +#![feature(rustc_attrs)] +#![warn(unused_extern_crates)] + +extern crate test_macros; +//~^ WARN unused extern crate + +#[rustc_error] +fn main() {} //~ ERROR fatal error triggered by #[rustc_error] |