mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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
|
|
}
|