1
- error: found unexpected token `"str"`
1
+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
2
2
--> $DIR/edition-cstr-2015-2018.rs:27:6
3
3
|
4
4
LL | c"str";
5
- | ^^^^^ found here
5
+ | ^^^^^ expected one of 8 possible tokens
6
6
|
7
- = note: you may be trying to declare a c-string literal
8
- = note: c-string literals require edition 2021 or later
7
+ = note: you may be trying to write a c-string literal
8
+ = note: c-string literals require Rust 2021 or later
9
9
= help: pass `--edition 2021` to `rustc`
10
10
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
11
11
12
- error: found unexpected token `"str"`
12
+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
13
13
--> $DIR/edition-cstr-2015-2018.rs:37:7
14
14
|
15
15
LL | cr"str";
16
- | ^^^^^ found here
16
+ | ^^^^^ expected one of 8 possible tokens
17
17
|
18
- = note: you may be trying to declare a c-string literal
19
- = note: c-string literals require edition 2021 or later
18
+ = note: you may be trying to write a c-string literal
19
+ = note: c-string literals require Rust 2021 or later
20
20
= help: pass `--edition 2021` to `rustc`
21
21
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
22
22
23
- error: found unexpected token `#`
23
+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `#`
24
24
--> $DIR/edition-cstr-2015-2018.rs:47:7
25
25
|
26
26
LL | cr##"str"##;
27
- | ^ found here
27
+ | ^ expected one of 8 possible tokens
28
28
|
29
- = note: you may be trying to declare a c-string literal
30
- = note: c-string literals require edition 2021 or later
29
+ = note: you may be trying to write a c-string literal
30
+ = note: c-string literals require Rust 2021 or later
31
31
= help: pass `--edition 2021` to `rustc`
32
32
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
33
33
@@ -48,17 +48,17 @@ LL | construct!(c);
48
48
|
49
49
= note: this error originates in the macro `construct` (in Nightly builds, run with -Z macro-backtrace for more info)
50
50
51
- error: found unexpected token `"str"`
51
+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
52
52
--> $DIR/edition-cstr-2015-2018.rs:5:33
53
53
|
54
54
LL | macro_rules! contain { () => { c"str" } }
55
- | ^^^^^ found here
55
+ | ^^^^^ expected one of 8 possible tokens
56
56
...
57
57
LL | contain!();
58
58
| ---------- in this macro invocation
59
59
|
60
- = note: you may be trying to declare a c-string literal
61
- = note: c-string literals require edition 2021 or later
60
+ = note: you may be trying to write a c-string literal
61
+ = note: c-string literals require Rust 2021 or later
62
62
= help: pass `--edition 2021` to `rustc`
63
63
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
64
64
= note: this error originates in the macro `contain` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments