summaryrefslogtreecommitdiffstats
path: root/tests/ui/offset-of/offset-of-must-use.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/offset-of/offset-of-must-use.stderr')
-rw-r--r--tests/ui/offset-of/offset-of-must-use.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/offset-of/offset-of-must-use.stderr b/tests/ui/offset-of/offset-of-must-use.stderr
new file mode 100644
index 000000000..5fe387a72
--- /dev/null
+++ b/tests/ui/offset-of/offset-of-must-use.stderr
@@ -0,0 +1,16 @@
+warning: unused return value of `must_use` that must be used
+ --> $DIR/offset-of-must-use.rs:7:5
+ |
+LL | core::mem::offset_of!((String,), 0);
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+note: the lint level is defined here
+ --> $DIR/offset-of-must-use.rs:4:9
+ |
+LL | #![warn(unused)]
+ | ^^^^^^
+ = note: `#[warn(unused_must_use)]` implied by `#[warn(unused)]`
+ = note: this warning originates in the macro `core::mem::offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+warning: 1 warning emitted
+