summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-31011.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-31011.stderr')
-rw-r--r--tests/ui/issues/issue-31011.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-31011.stderr b/tests/ui/issues/issue-31011.stderr
new file mode 100644
index 000000000..58c170409
--- /dev/null
+++ b/tests/ui/issues/issue-31011.stderr
@@ -0,0 +1,17 @@
+error[E0609]: no field `trace` on type `&T`
+ --> $DIR/issue-31011.rs:3:17
+ |
+LL | if $ctx.trace {
+ | ^^^^^
+...
+LL | fn wrap<T>(context: &T) -> ()
+ | - type parameter 'T' declared here
+LL | {
+LL | log!(context, "entered wrapper");
+ | -------------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0609`.