Files
rust/tests/ui/simd/repr-simd-on-enum.rs

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

16 lines
262 B
Rust
Raw Normal View History

// Used to ICE; see <https://github.com/rust-lang/rust/issues/121097>
#![feature(repr_simd)]
#[repr(simd)] //~ ERROR attribute should be applied to a struct
enum Aligned {
Zero = 0,
One = 1,
}
fn tou8(al: Aligned) -> u8 {
al as u8
}
fn main() {}