1- error: found unexpected token `"str"`
1+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
22 --> $DIR/edition-cstr-2015-2018.rs:27:6
33 |
44LL | c"str";
5- | ^^^^^ found here
5+ | ^^^^^ expected one of 8 possible tokens
66 |
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
99 = help: pass `--edition 2021` to `rustc`
1010 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
1111
12- error: found unexpected token `"str"`
12+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
1313 --> $DIR/edition-cstr-2015-2018.rs:37:7
1414 |
1515LL | cr"str";
16- | ^^^^^ found here
16+ | ^^^^^ expected one of 8 possible tokens
1717 |
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
2020 = help: pass `--edition 2021` to `rustc`
2121 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
2222
23- error: found unexpected token `#`
23+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `#`
2424 --> $DIR/edition-cstr-2015-2018.rs:47:7
2525 |
2626LL | cr##"str"##;
27- | ^ found here
27+ | ^ expected one of 8 possible tokens
2828 |
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
3131 = help: pass `--edition 2021` to `rustc`
3232 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
3333
@@ -48,17 +48,17 @@ LL | construct!(c);
4848 |
4949 = note: this error originates in the macro `construct` (in Nightly builds, run with -Z macro-backtrace for more info)
5050
51- error: found unexpected token `"str"`
51+ error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
5252 --> $DIR/edition-cstr-2015-2018.rs:5:33
5353 |
5454LL | macro_rules! contain { () => { c"str" } }
55- | ^^^^^ found here
55+ | ^^^^^ expected one of 8 possible tokens
5656...
5757LL | contain!();
5858 | ---------- in this macro invocation
5959 |
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
6262 = help: pass `--edition 2021` to `rustc`
6363 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
6464 = note: this error originates in the macro `contain` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments