Files
rust/tests/ui/feature-gates/feature-gate-repr-simd.rs

18 lines
500 B
Rust
Raw Normal View History

#[repr(simd)] //~ ERROR: SIMD types are experimental
2024-08-22 01:28:20 -07:00
struct Foo([u64; 2]);
#[repr(C)] //~ ERROR conflicting representation hints
2020-01-28 00:27:57 +01:00
//~^ WARN this was previously accepted
#[repr(simd)] //~ ERROR: SIMD types are experimental
2024-08-22 01:28:20 -07:00
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() {}