summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/no-macro-use-attr.rs
blob: a8a8fa4e19a4a91756f9a6f6d7a7e2886d28adbd (plain)
1
2
3
4
5
6
7
8
9
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]