summaryrefslogtreecommitdiffstats
path: root/tests/ui/editions/edition-keywords-2018-2018-parsing.stderr
blob: 19eb7ac98239eb4b37e9cfc385e038faec0777e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
error: expected identifier, found keyword `async`
  --> $DIR/edition-keywords-2018-2018-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-2018-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-2018-parsing.rs:20:31
   |
LL |     r#async = consumes_async!(r#async);
   |                               ^^^^^^^ no rules expected this token in macro call
   |
note: while trying to match `async`
  --> $DIR/auxiliary/edition-kw-macro-2018.rs:17:6
   |
LL |     (async) => (1)
   |      ^^^^^

error: no rules expected the token `async`
  --> $DIR/edition-keywords-2018-2018-parsing.rs:21:35
   |
LL |     r#async = consumes_async_raw!(async);
   |                                   ^^^^^ no rules expected this token in macro call
   |
note: while trying to match `r#async`
  --> $DIR/auxiliary/edition-kw-macro-2018.rs:22:6
   |
LL |     (r#async) => (1)
   |      ^^^^^^^

error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
  --> $DIR/auxiliary/edition-kw-macro-2018.rs:27:23
   |
LL |     ($i: ident) => ($i)
   |                       ^ expected one of `move`, `|`, or `||`
   |
  ::: $DIR/edition-keywords-2018-2018-parsing.rs:24:8
   |
LL |     if passes_ident!(async) == 1 {}
   |        -------------------- in this macro invocation

error[E0308]: mismatched types
  --> $DIR/edition-keywords-2018-2018-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`.