mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
18 lines
500 B
Rust
18 lines
500 B
Rust
#[repr(simd)] //~ ERROR: SIMD types are experimental
|
|
struct Foo([u64; 2]);
|
|
|
|
#[repr(C)] //~ ERROR conflicting representation hints
|
|
//~^ WARN this was previously accepted
|
|
#[repr(simd)] //~ ERROR: SIMD types are experimental
|
|
struct Bar([u64; 2]);
|
|
|
|
#[repr(simd)] //~ ERROR: SIMD types are experimental
|
|
//~^ ERROR: attribute should be applied to a struct
|
|
union U {f: u32}
|
|
|
|
#[repr(simd)] //~ ERROR: SIMD types are experimental
|
|
//~^ error: attribute should be applied to a struct
|
|
enum E { X }
|
|
|
|
fn main() {}
|