diff options
Diffstat (limited to 'src/test/ui/reserved/reserved-attr-on-macro.rs')
-rw-r--r-- | src/test/ui/reserved/reserved-attr-on-macro.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/reserved/reserved-attr-on-macro.rs b/src/test/ui/reserved/reserved-attr-on-macro.rs new file mode 100644 index 000000000..2630db0d0 --- /dev/null +++ b/src/test/ui/reserved/reserved-attr-on-macro.rs @@ -0,0 +1,11 @@ +#[rustc_attribute_should_be_reserved] +//~^ ERROR cannot find attribute `rustc_attribute_should_be_reserved` in this scope +//~| ERROR attributes starting with `rustc` are reserved for use by the `rustc` compiler + +macro_rules! foo { + () => (()); +} + +fn main() { + foo!(); //~ ERROR cannot determine resolution for the macro `foo` +} |