mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00

This just uses the `valid_range` from the backend, so it's duplicating the range metadata that now we include on parameters and loads.
16 lines
262 B
Rust
16 lines
262 B
Rust
// 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() {}
|