rust/tests/ui/offset-of/offset-of-unstable-with-fea...

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

21 lines
565 B
Rust
Raw Normal View History

2023-04-21 16:53:34 +08:00
//@ check-pass
//@ aux-build:offset-of-staged-api.rs
2023-12-06 06:15:26 +08:00
#![feature(offset_of_nested, unstable_test_feature)]
2023-04-21 16:53:34 +08:00
use std::mem::offset_of;
extern crate offset_of_staged_api;
use offset_of_staged_api::*;
fn main() {
offset_of!(Unstable, unstable);
offset_of!(Stable, stable);
offset_of!(StableWithUnstableField, unstable);
offset_of!(StableWithUnstableFieldType, stable);
offset_of!(StableWithUnstableFieldType, stable.unstable);
offset_of!(UnstableWithStableFieldType, unstable);
offset_of!(UnstableWithStableFieldType, unstable.stable);
}