summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr')
-rw-r--r--tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr b/tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr
new file mode 100644
index 000000000..ae7c5d60c
--- /dev/null
+++ b/tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr
@@ -0,0 +1,29 @@
+error: prefix `hey` is unknown
+ --> $DIR/reserved-prefixes-via-macro-2.rs:15:5
+ |
+LL | m2021::number_of_tokens_in_a_prefixed_integer_literal!();
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+ = note: this error originates in the macro `m2021::number_of_tokens_in_a_prefixed_integer_literal` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: prefix `hey` is unknown
+ --> $DIR/reserved-prefixes-via-macro-2.rs:17:5
+ |
+LL | m2021::number_of_tokens_in_a_prefixed_char_literal!();
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+ = note: this error originates in the macro `m2021::number_of_tokens_in_a_prefixed_char_literal` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: prefix `hey` is unknown
+ --> $DIR/reserved-prefixes-via-macro-2.rs:19:5
+ |
+LL | m2021::number_of_tokens_in_a_prefixed_string_literal!();
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown prefix
+ |
+ = note: prefixed identifiers and literals are reserved since Rust 2021
+ = note: this error originates in the macro `m2021::number_of_tokens_in_a_prefixed_string_literal` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 3 previous errors
+