2024-04-28 12:36:08 -05:00
|
|
|
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);
|
2024-04-28 12:36:08 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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
|
|
|
|
|