summaryrefslogtreecommitdiffstats
path: root/src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr')
-rw-r--r--src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr b/src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr
new file mode 100644
index 000000000..570bbac2b
--- /dev/null
+++ b/src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr
@@ -0,0 +1,15 @@
+error: expected identifier, found keyword `async`
+ --> $DIR/edition-keywords-2015-2018-expansion.rs:8:5
+ |
+LL | produces_async! {}
+ | ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword
+ |
+ = note: this error originates in the macro `produces_async` (in Nightly builds, run with -Z macro-backtrace for more info)
+help: escape `async` to use it as an identifier
+ --> $DIR/auxiliary/edition-kw-macro-2018.rs:7:19
+ |
+LL | () => (pub fn r#async() {})
+ | ++
+
+error: aborting due to previous error
+