From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/reserved/reserved-attr-on-macro.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ui/reserved/reserved-attr-on-macro.rs (limited to 'tests/ui/reserved/reserved-attr-on-macro.rs') 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 000000000..2630db0d0 --- /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` +} -- cgit v1.2.3