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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
258 B
Rust
Raw Normal View History

#[repr(simd)] //~ error: SIMD types are experimental
2024-08-22 08:28:20 +00:00
struct Foo([u64; 2]);
#[repr(C)] //~ ERROR conflicting representation hints
2020-01-27 23:27:57 +00:00
//~^ WARN this was previously accepted
#[repr(simd)] //~ error: SIMD types are experimental
2024-08-22 08:28:20 +00:00
struct Bar([u64; 2]);
fn main() {}