summary refs log tree commit diff
path: root/tests/ui/simd/repr-simd-on-enum.rs
blob: 49cf9e92d36cfd7fde698e31030f442d74ed624b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}