summaryrefslogtreecommitdiffstats
path: root/src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr')
-rw-r--r--src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr b/src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr
new file mode 100644
index 000000000..e1eea725b
--- /dev/null
+++ b/src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr
@@ -0,0 +1,56 @@
+error: expected identifier, found keyword `async`
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:16:13
+ |
+LL | let mut async = 1;
+ | ^^^^^ expected identifier, found keyword
+ |
+help: escape `async` to use it as an identifier
+ |
+LL | let mut r#async = 1;
+ | ++
+
+error: expected identifier, found keyword `async`
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:26:13
+ |
+LL | module::async();
+ | ^^^^^ expected identifier, found keyword
+ |
+help: escape `async` to use it as an identifier
+ |
+LL | module::r#async();
+ | ++
+
+error: no rules expected the token `r#async`
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:20:31
+ |
+LL | r#async = consumes_async!(r#async);
+ | ^^^^^^^ no rules expected this token in macro call
+
+error: no rules expected the token `async`
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:21:35
+ |
+LL | r#async = consumes_async_raw!(async);
+ | ^^^^^ no rules expected this token in macro call
+
+error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
+ --> $DIR/auxiliary/edition-kw-macro-2015.rs:27:23
+ |
+LL | ($i: ident) => ($i)
+ | ^ expected one of `move`, `|`, or `||`
+ |
+ ::: $DIR/edition-keywords-2018-2015-parsing.rs:24:8
+ |
+LL | if passes_ident!(async) == 1 {}
+ | -------------------- in this macro invocation
+
+error[E0308]: mismatched types
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:29:33
+ |
+LL | let _recovery_witness: () = 0;
+ | -- ^ expected `()`, found integer
+ | |
+ | expected due to this
+
+error: aborting due to 6 previous errors
+
+For more information about this error, try `rustc --explain E0308`.