mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +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
|
|
}
|