mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
10 lines
225 B
Rust
10 lines
225 B
Rust
// See also repr-transparent.rs
|
|
|
|
#[repr(transparent)] //~ ERROR should be applied to a struct
|
|
fn cant_repr_this() {}
|
|
|
|
#[repr(transparent)] //~ ERROR should be applied to a struct
|
|
static CANT_REPR_THIS: u32 = 0;
|
|
|
|
fn main() {}
|