rust/tests/ui/offset-of/offset-of-must-use.rs
2023-06-21 11:43:14 +03:00

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
}