@@ -18,6 +18,26 @@ LL | #[repr(simd)]
18
18
= help: add `#![feature(repr_simd)]` to the crate attributes to enable
19
19
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20
20
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
+
21
41
error[E0566]: conflicting representation hints
22
42
--> $DIR/feature-gate-repr-simd.rs:4:8
23
43
|
@@ -31,10 +51,28 @@ LL | #[repr(simd)]
31
51
= note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
32
52
= note: `#[deny(conflicting_repr_hints)]` on by default
33
53
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
35
73
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 `.
38
76
Future incompatibility report: Future breakage diagnostic:
39
77
error[E0566]: conflicting representation hints
40
78
--> $DIR/feature-gate-repr-simd.rs:4:8
0 commit comments