about summary refs log tree commit diff
path: root/tests/ui/macros/metavar-expressions/concat-hygiene.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/metavar-expressions/concat-hygiene.stderr')
-rw-r--r--tests/ui/macros/metavar-expressions/concat-hygiene.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/macros/metavar-expressions/concat-hygiene.stderr b/tests/ui/macros/metavar-expressions/concat-hygiene.stderr
new file mode 100644
index 00000000000..f3150d385ee
--- /dev/null
+++ b/tests/ui/macros/metavar-expressions/concat-hygiene.stderr
@@ -0,0 +1,14 @@
+error[E0425]: cannot find value `abcdef` in this scope
+  --> $DIR/concat-hygiene.rs:5:10
+   |
+LL |         ${concat($lhs, $rhs)}
+   |          ^^^^^^^^^^^^^^^^^^^^ not found in this scope
+...
+LL |     let _another = join!(abc, def);
+   |                    --------------- in this macro invocation
+   |
+   = note: this error originates in the macro `join` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0425`.