1error: unrecognized representation hint
2  --> tests/ui-msrv/enum.rs:19:8
3   |
419 | #[repr("foo")]
5   |        ^^^^^
6
7error: unrecognized representation hint
8  --> tests/ui-msrv/enum.rs:25:8
9   |
1025 | #[repr(foo)]
11   |        ^^^
12
13error: unsupported representation for deriving FromBytes, AsBytes, or Unaligned on an enum
14  --> tests/ui-msrv/enum.rs:31:8
15   |
1631 | #[repr(transparent)]
17   |        ^^^^^^^^^^^
18
19error: conflicting representation hints
20  --> tests/ui-msrv/enum.rs:37:1
21   |
2237 | #[repr(u8, u16)]
23   | ^
24
25error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
26  --> tests/ui-msrv/enum.rs:42:22
27   |
2842 | #[derive(FromZeroes, FromBytes)]
29   |                      ^^^^^^^^^
30   |
31   = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
32
33error: only C-like enums can implement FromZeroes
34  --> tests/ui-msrv/enum.rs:52:1
35   |
3652 | / enum FromZeroes1 {
3753 | |     A(u8),
3854 | | }
39   | |_^
40
41error: only C-like enums can implement FromZeroes
42  --> tests/ui-msrv/enum.rs:57:1
43   |
4457 | / enum FromZeroes2 {
4558 | |     A,
4659 | |     B(u8),
4760 | | }
48   | |_^
49
50error: FromZeroes only supported on enums with a variant that has a discriminant of `0`
51  --> tests/ui-msrv/enum.rs:63:1
52   |
5363 | / enum FromZeroes3 {
5464 | |     A = 1,
5565 | |     B,
5666 | | }
57   | |_^
58
59error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
60  --> tests/ui-msrv/enum.rs:73:8
61   |
6273 | #[repr(C)]
63   |        ^
64
65error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
66  --> tests/ui-msrv/enum.rs:79:8
67   |
6879 | #[repr(usize)]
69   |        ^^^^^
70
71error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
72  --> tests/ui-msrv/enum.rs:85:8
73   |
7485 | #[repr(isize)]
75   |        ^^^^^
76
77error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
78  --> tests/ui-msrv/enum.rs:91:8
79   |
8091 | #[repr(u32)]
81   |        ^^^
82
83error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
84  --> tests/ui-msrv/enum.rs:97:8
85   |
8697 | #[repr(i32)]
87   |        ^^^
88
89error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
90   --> tests/ui-msrv/enum.rs:103:8
91    |
92103 | #[repr(u64)]
93    |        ^^^
94
95error: FromBytes requires repr of "u8", "u16", "i8", or "i16"
96   --> tests/ui-msrv/enum.rs:109:8
97    |
98109 | #[repr(i64)]
99    |        ^^^
100
101error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
102   --> tests/ui-msrv/enum.rs:119:8
103    |
104119 | #[repr(C)]
105    |        ^
106
107error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
108   --> tests/ui-msrv/enum.rs:125:8
109    |
110125 | #[repr(u16)]
111    |        ^^^
112
113error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
114   --> tests/ui-msrv/enum.rs:131:8
115    |
116131 | #[repr(i16)]
117    |        ^^^
118
119error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
120   --> tests/ui-msrv/enum.rs:137:8
121    |
122137 | #[repr(u32)]
123    |        ^^^
124
125error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
126   --> tests/ui-msrv/enum.rs:143:8
127    |
128143 | #[repr(i32)]
129    |        ^^^
130
131error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
132   --> tests/ui-msrv/enum.rs:149:8
133    |
134149 | #[repr(u64)]
135    |        ^^^
136
137error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
138   --> tests/ui-msrv/enum.rs:155:8
139    |
140155 | #[repr(i64)]
141    |        ^^^
142
143error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
144   --> tests/ui-msrv/enum.rs:161:8
145    |
146161 | #[repr(usize)]
147    |        ^^^^^
148
149error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1)))
150   --> tests/ui-msrv/enum.rs:167:8
151    |
152167 | #[repr(isize)]
153    |        ^^^^^
154
155error: cannot derive Unaligned with repr(align(N > 1))
156   --> tests/ui-msrv/enum.rs:173:12
157    |
158173 | #[repr(u8, align(2))]
159    |            ^^^^^^^^
160
161error: cannot derive Unaligned with repr(align(N > 1))
162   --> tests/ui-msrv/enum.rs:179:12
163    |
164179 | #[repr(i8, align(2))]
165    |            ^^^^^^^^
166
167error: cannot derive Unaligned with repr(align(N > 1))
168   --> tests/ui-msrv/enum.rs:185:18
169    |
170185 | #[repr(align(1), align(2))]
171    |                  ^^^^^^^^
172
173error: cannot derive Unaligned with repr(align(N > 1))
174   --> tests/ui-msrv/enum.rs:191:8
175    |
176191 | #[repr(align(2), align(4))]
177    |        ^^^^^^^^
178
179error[E0565]: meta item in `repr` must be an identifier
180  --> tests/ui-msrv/enum.rs:19:8
181   |
18219 | #[repr("foo")]
183   |        ^^^^^
184
185error[E0552]: unrecognized representation hint
186  --> tests/ui-msrv/enum.rs:25:8
187   |
18825 | #[repr(foo)]
189   |        ^^^
190
191error[E0566]: conflicting representation hints
192  --> tests/ui-msrv/enum.rs:37:8
193   |
19437 | #[repr(u8, u16)]
195   |        ^^  ^^^
196   |
197   = note: `#[deny(conflicting_repr_hints)]` on by default
198   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
199   = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
200