mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +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() {}
|