rust/tests/ui/offset-of/offset-of-must-use.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
578 B
Plaintext
Raw Normal View History

warning: unused `offset_of` call that must be used
2023-12-05 16:15:26 -06:00
--> $DIR/offset-of-must-use.rs:6:5
2023-06-08 07:11:31 -05:00
|
LL | core::mem::offset_of!((String,), 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `offset_of` call produces a value
2023-06-08 07:11:31 -05:00
|
note: the lint level is defined here
2023-12-05 16:15:26 -06:00
--> $DIR/offset-of-must-use.rs:3:9
2023-06-08 07:11:31 -05:00
|
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