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
struct Foo(u64, u64);
#[repr(C)] //~ ERROR conflicting representation hints
2020-01-27 17:27:57 -06:00
//~^ WARN this was previously accepted
#[repr(simd)] //~ error: SIMD types are experimental
struct Bar(u64, u64);
fn main() {}