summaryrefslogtreecommitdiffstats
path: root/tests/ui/editions/edition-cstr-2015-2018.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/editions/edition-cstr-2015-2018.stderr')
-rw-r--r--tests/ui/editions/edition-cstr-2015-2018.stderr67
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/ui/editions/edition-cstr-2015-2018.stderr b/tests/ui/editions/edition-cstr-2015-2018.stderr
new file mode 100644
index 000000000..b864df308
--- /dev/null
+++ b/tests/ui/editions/edition-cstr-2015-2018.stderr
@@ -0,0 +1,67 @@
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
+ --> $DIR/edition-cstr-2015-2018.rs:27:6
+ |
+LL | c"str";
+ | ^^^^^ expected one of 8 possible tokens
+ |
+ = note: you may be trying to write a c-string literal
+ = note: c-string literals require Rust 2021 or later
+ = help: pass `--edition 2021` to `rustc`
+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
+ --> $DIR/edition-cstr-2015-2018.rs:37:7
+ |
+LL | cr"str";
+ | ^^^^^ expected one of 8 possible tokens
+ |
+ = note: you may be trying to write a c-string literal
+ = note: c-string literals require Rust 2021 or later
+ = help: pass `--edition 2021` to `rustc`
+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `#`
+ --> $DIR/edition-cstr-2015-2018.rs:47:7
+ |
+LL | cr##"str"##;
+ | ^ expected one of 8 possible tokens
+ |
+ = note: you may be trying to write a c-string literal
+ = note: c-string literals require Rust 2021 or later
+ = help: pass `--edition 2021` to `rustc`
+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
+ --> $DIR/edition-cstr-2015-2018.rs:57:7
+ |
+LL | c "str";
+ | ^^^^^ expected one of 8 possible tokens
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
+ --> $DIR/edition-cstr-2015-2018.rs:1:44
+ |
+LL | macro_rules! construct { ($x:ident) => { $x"str" } }
+ | ^^^^^ expected one of 8 possible tokens
+...
+LL | construct!(c);
+ | ------------- in this macro invocation
+ |
+ = note: this error originates in the macro `construct` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
+ --> $DIR/edition-cstr-2015-2018.rs:5:33
+ |
+LL | macro_rules! contain { () => { c"str" } }
+ | ^^^^^ expected one of 8 possible tokens
+...
+LL | contain!();
+ | ---------- in this macro invocation
+ |
+ = note: you may be trying to write a c-string literal
+ = note: c-string literals require Rust 2021 or later
+ = help: pass `--edition 2021` to `rustc`
+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
+ = note: this error originates in the macro `contain` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 6 previous errors
+