mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
10 lines
177 B
Rust
10 lines
177 B
Rust
// check-pass
|
|
|
|
#![feature(offset_of)]
|
|
#![warn(unused)]
|
|
|
|
fn main() {
|
|
core::mem::offset_of!((String,), 0);
|
|
//~^ WARN unused return value of `must_use` that must be used
|
|
}
|