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.

9 lines
145 B
Rust
Raw Permalink Normal View History

2023-06-08 07:11:31 -05:00
//@ check-pass
#![warn(unused)]
fn main() {
core::mem::offset_of!((String,), 0);
//~^ WARN unused `offset_of` call that must be used
2023-06-08 07:11:31 -05:00
}