summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macro-keyword.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/macro-keyword.stderr')
-rw-r--r--tests/ui/parser/macro-keyword.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/parser/macro-keyword.stderr b/tests/ui/parser/macro-keyword.stderr
new file mode 100644
index 000000000..d794671f8
--- /dev/null
+++ b/tests/ui/parser/macro-keyword.stderr
@@ -0,0 +1,13 @@
+error: expected identifier, found reserved keyword `macro`
+ --> $DIR/macro-keyword.rs:1:4
+ |
+LL | fn macro() {
+ | ^^^^^ expected identifier, found reserved keyword
+ |
+help: escape `macro` to use it as an identifier
+ |
+LL | fn r#macro() {
+ | ++
+
+error: aborting due to previous error
+