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