rust/tests/ui/offset-of/offset-of-must-use.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
177 B
Rust
Raw Normal View History

2023-06-08 12:11:31 +00:00
// 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
}