about summary refs log tree commit diff
path: root/tests/ui/repr/explicit-rust-repr-conflicts.rs
blob: 5278f5e6ae0cc9b685dd0639f728dab3dcb9a142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#[repr(C, Rust)] //~ ERROR conflicting representation hints
struct S {
    a: i32,
}


#[repr(Rust)] //~ ERROR conflicting representation hints
#[repr(C)]
struct T {
    a: i32,
}

#[repr(Rust, u64)] //~ ERROR conflicting representation hints
enum U {
    V,
}

#[repr(Rust, simd)]
//~^ ERROR conflicting representation hints
//~| ERROR SIMD types are experimental and possibly buggy
struct F32x4([f32; 4]);

fn main() {}