summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rust-2021/reserved-prefixes.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/rust-2021/reserved-prefixes.stderr119
1 files changed, 119 insertions, 0 deletions
diff --git a/src/test/ui/rust-2021/reserved-prefixes.stderr b/src/test/ui/rust-2021/reserved-prefixes.stderr
new file mode 100644
index 000000000..df31aee66
--- /dev/null
+++ b/src/test/ui/rust-2021/reserved-prefixes.stderr
@@ -0,0 +1,119 @@
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:16:12
+ |
+LL | demo3!(foo#bar);
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo3!(foo#bar);
+LL + demo3!(foo #bar);
+ |
+
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:17:12
+ |
+LL | demo2!(foo"bar");
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo2!(foo"bar");
+LL + demo2!(foo "bar");
+ |
+
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:18:12
+ |
+LL | demo2!(foo'b');
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo2!(foo'b');
+LL + demo2!(foo 'b');
+ |
+
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:20:12
+ |
+LL | demo2!(foo'b);
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo2!(foo'b);
+LL + demo2!(foo 'b);
+ |
+
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:21:12
+ |
+LL | demo3!(foo# bar);
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo3!(foo# bar);
+LL + demo3!(foo # bar);
+ |
+
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:22:12
+ |
+LL | demo4!(foo#! bar);
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo4!(foo#! bar);
+LL + demo4!(foo #! bar);
+ |
+
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:23:12
+ |
+LL | demo4!(foo## bar);
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo4!(foo## bar);
+LL + demo4!(foo ## bar);
+ |
+
+error: prefix `foo` is unknown
+ --> $DIR/reserved-prefixes.rs:25:12
+ |
+LL | demo4!(foo#bar#);
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo4!(foo#bar#);
+LL + demo4!(foo #bar#);
+ |
+
+error: prefix `bar` is unknown
+ --> $DIR/reserved-prefixes.rs:25:16
+ |
+LL | demo4!(foo#bar#);
+ | ^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+help: consider inserting whitespace here
+ |
+LL - demo4!(foo#bar#);
+LL + demo4!(foo#bar #);
+ |
+
+error: aborting due to 9 previous errors
+