ca79086c87
This was due to the must_use() call. Adding HIR's OffsetOf to the must_use checking within the compiler avoids this issue.
9 lines
145 B
Rust
9 lines
145 B
Rust
//@ check-pass
|
|
|
|
#![warn(unused)]
|
|
|
|
fn main() {
|
|
core::mem::offset_of!((String,), 0);
|
|
//~^ WARN unused `offset_of` call that must be used
|
|
}
|