1 // compile-flags:--crate-type lib
2 #![feature(decl_macro)]
3 #![feature(rustc_attrs)]
6 pub macro test($item:item) {
7 //~^ NOTE previously defined
8 /* compiler built-in */
12 #[rustc_builtin_macro]
13 pub macro test($item:item) {
14 //~^ ERROR attempted to define built-in macro more than once [E0773]
15 /* compiler built-in */