diff options
Diffstat (limited to 'tests/ui/reserved/reserved-attr-on-macro.rs')
| -rw-r--r-- | tests/ui/reserved/reserved-attr-on-macro.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/reserved/reserved-attr-on-macro.rs b/tests/ui/reserved/reserved-attr-on-macro.rs new file mode 100644 index 00000000000..2630db0d097 --- /dev/null +++ b/tests/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` +} |
