rust/tests/ui/simd/repr-simd-on-enum.stderr
Scott McMurray 01524abb05 MIR-build: No longer emit assumes in enum-as casting
This just uses the `valid_range` from the backend, so it's duplicating the range metadata that now we include on parameters and loads.
2025-07-24 10:18:37 -07:00

15 lines
339 B
Plaintext

error[E0517]: attribute should be applied to a struct
--> $DIR/repr-simd-on-enum.rs:5:8
|
LL | #[repr(simd)]
| ^^^^
LL | / enum Aligned {
LL | | Zero = 0,
LL | | One = 1,
LL | | }
| |_- not a struct
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0517`.