11 lines
120 B
Rust
11 lines
120 B
Rust
|
#[repr(packed)]
|
||
|
struct Foo {
|
||
|
i: i32
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
assert_eq!({FOO.i}, 42);
|
||
|
}
|
||
|
|
||
|
static FOO: Foo = Foo { i: 42 };
|