diff options
Diffstat (limited to 'tests/ui/proc-macro/reserved-macro-names.stderr')
-rw-r--r-- | tests/ui/proc-macro/reserved-macro-names.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/reserved-macro-names.stderr b/tests/ui/proc-macro/reserved-macro-names.stderr new file mode 100644 index 000000000..39bdd03be --- /dev/null +++ b/tests/ui/proc-macro/reserved-macro-names.stderr @@ -0,0 +1,14 @@ +error: name `cfg` is reserved in attribute namespace + --> $DIR/reserved-macro-names.rs:10:8 + | +LL | pub fn cfg(_: TokenStream, input: TokenStream) -> TokenStream { + | ^^^ + +error: name `cfg_attr` is reserved in attribute namespace + --> $DIR/reserved-macro-names.rs:16:8 + | +LL | pub fn cfg_attr(_: TokenStream, input: TokenStream) -> TokenStream { + | ^^^^^^^^ + +error: aborting due to 2 previous errors + |