@@ -18,6 +18,26 @@ LL | #[repr(simd)]
1818 = help: add `#![feature(repr_simd)]` to the crate attributes to enable
1919 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2020
21+ error[E0658]: SIMD types are experimental and possibly buggy
22+ --> $DIR/feature-gate-repr-simd.rs:9:1
23+ |
24+ LL | #[repr(simd)]
25+ | ^^^^^^^^^^^^^
26+ |
27+ = note: see issue #27731 <https://github.com/rust-lang/rust/issues/27731> for more information
28+ = help: add `#![feature(repr_simd)]` to the crate attributes to enable
29+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
30+
31+ error[E0658]: SIMD types are experimental and possibly buggy
32+ --> $DIR/feature-gate-repr-simd.rs:13:1
33+ |
34+ LL | #[repr(simd)]
35+ | ^^^^^^^^^^^^^
36+ |
37+ = note: see issue #27731 <https://github.com/rust-lang/rust/issues/27731> for more information
38+ = help: add `#![feature(repr_simd)]` to the crate attributes to enable
39+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
40+
2141error[E0566]: conflicting representation hints
2242 --> $DIR/feature-gate-repr-simd.rs:4:8
2343 |
@@ -31,10 +51,28 @@ LL | #[repr(simd)]
3151 = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
3252 = note: `#[deny(conflicting_repr_hints)]` on by default
3353
34- error: aborting due to 3 previous errors
54+ error[E0517]: attribute should be applied to a struct
55+ --> $DIR/feature-gate-repr-simd.rs:9:8
56+ |
57+ LL | #[repr(simd)]
58+ | ^^^^
59+ LL |
60+ LL | union U {f: u32}
61+ | ---------------- not a struct
62+
63+ error[E0517]: attribute should be applied to a struct
64+ --> $DIR/feature-gate-repr-simd.rs:13:8
65+ |
66+ LL | #[repr(simd)]
67+ | ^^^^
68+ LL |
69+ LL | enum E { X }
70+ | ------------ not a struct
71+
72+ error: aborting due to 7 previous errors
3573
36- Some errors have detailed explanations: E0566, E0658.
37- For more information about an error, try `rustc --explain E0566 `.
74+ Some errors have detailed explanations: E0517, E0566, E0658.
75+ For more information about an error, try `rustc --explain E0517 `.
3876Future incompatibility report: Future breakage diagnostic:
3977error[E0566]: conflicting representation hints
4078 --> $DIR/feature-gate-repr-simd.rs:4:8
0 commit comments