summaryrefslogtreecommitdiff
path: root/tests/ui/repr/invalid_repr_list_help.rs
blob: c320984536caccafb254c4a1915dde1a100892a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![crate_type = "lib"]

#[repr(uwu)] //~ERROR: unrecognized representation hint
pub struct OwO;

#[repr(uwu = "a")] //~ERROR: unrecognized representation hint
pub struct OwO2(i32);

#[repr(uwu(4))] //~ERROR: unrecognized representation hint
pub struct OwO3 {
    x: i32,
}

#[repr(uwu, u8)] //~ERROR: unrecognized representation hint
pub enum OwO4 {
    UwU = 1,
}