about summary refs log tree commit diff
path: root/tests/ui/mir/validate/project-into-simd.rs
blob: 67766c8c4b010af13f1d17f64162a23f59d23614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Optimized MIR shouldn't have critical call edges
//
//@ build-fail
//@ edition: 2021
//@ compile-flags: --crate-type=lib
//@ failure-status: 101
//@ dont-check-compiler-stderr

#![feature(repr_simd)]

#[repr(simd)]
pub struct U32x4([u32; 4]);

pub fn f(a: U32x4) -> [u32; 4] {
    a.0
    //~^ ERROR broken MIR in Item
    //~| ERROR Projecting into SIMD type U32x4 is banned by MCP#838
}