1error: unrecognized representation hint 2 --> tests/ui-msrv/enum.rs:15:8 3 | 415 | #[repr("foo")] 5 | ^^^^^ 6 7error: unrecognized representation hint 8 --> tests/ui-msrv/enum.rs:21:8 9 | 1021 | #[repr(foo)] 11 | ^^^ 12 13error: unsupported representation for deriving FromBytes, AsBytes, or Unaligned on an enum 14 --> tests/ui-msrv/enum.rs:27:8 15 | 1627 | #[repr(transparent)] 17 | ^^^^^^^^^^^ 18 19error: conflicting representation hints 20 --> tests/ui-msrv/enum.rs:33:1 21 | 2233 | #[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:38:10 27 | 2838 | #[derive(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: FromBytes requires repr of "u8", "u16", "i8", or "i16" 34 --> tests/ui-msrv/enum.rs:48:8 35 | 3648 | #[repr(C)] 37 | ^ 38 39error: FromBytes requires repr of "u8", "u16", "i8", or "i16" 40 --> tests/ui-msrv/enum.rs:54:8 41 | 4254 | #[repr(usize)] 43 | ^^^^^ 44 45error: FromBytes requires repr of "u8", "u16", "i8", or "i16" 46 --> tests/ui-msrv/enum.rs:60:8 47 | 4860 | #[repr(isize)] 49 | ^^^^^ 50 51error: FromBytes requires repr of "u8", "u16", "i8", or "i16" 52 --> tests/ui-msrv/enum.rs:66:8 53 | 5466 | #[repr(u32)] 55 | ^^^ 56 57error: FromBytes requires repr of "u8", "u16", "i8", or "i16" 58 --> tests/ui-msrv/enum.rs:72:8 59 | 6072 | #[repr(i32)] 61 | ^^^ 62 63error: FromBytes requires repr of "u8", "u16", "i8", or "i16" 64 --> tests/ui-msrv/enum.rs:78:8 65 | 6678 | #[repr(u64)] 67 | ^^^ 68 69error: FromBytes requires repr of "u8", "u16", "i8", or "i16" 70 --> tests/ui-msrv/enum.rs:84:8 71 | 7284 | #[repr(i64)] 73 | ^^^ 74 75error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 76 --> tests/ui-msrv/enum.rs:94:8 77 | 7894 | #[repr(C)] 79 | ^ 80 81error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 82 --> tests/ui-msrv/enum.rs:100:8 83 | 84100 | #[repr(u16)] 85 | ^^^ 86 87error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 88 --> tests/ui-msrv/enum.rs:106:8 89 | 90106 | #[repr(i16)] 91 | ^^^ 92 93error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 94 --> tests/ui-msrv/enum.rs:112:8 95 | 96112 | #[repr(u32)] 97 | ^^^ 98 99error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 100 --> tests/ui-msrv/enum.rs:118:8 101 | 102118 | #[repr(i32)] 103 | ^^^ 104 105error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 106 --> tests/ui-msrv/enum.rs:124:8 107 | 108124 | #[repr(u64)] 109 | ^^^ 110 111error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 112 --> tests/ui-msrv/enum.rs:130:8 113 | 114130 | #[repr(i64)] 115 | ^^^ 116 117error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 118 --> tests/ui-msrv/enum.rs:136:8 119 | 120136 | #[repr(usize)] 121 | ^^^^^ 122 123error: Unaligned requires repr of "u8" or "i8", and no alignment (i.e., repr(align(N > 1))) 124 --> tests/ui-msrv/enum.rs:142:8 125 | 126142 | #[repr(isize)] 127 | ^^^^^ 128 129error: cannot derive Unaligned with repr(align(N > 1)) 130 --> tests/ui-msrv/enum.rs:148:12 131 | 132148 | #[repr(u8, align(2))] 133 | ^^^^^^^^ 134 135error: cannot derive Unaligned with repr(align(N > 1)) 136 --> tests/ui-msrv/enum.rs:154:12 137 | 138154 | #[repr(i8, align(2))] 139 | ^^^^^^^^ 140 141error: cannot derive Unaligned with repr(align(N > 1)) 142 --> tests/ui-msrv/enum.rs:160:18 143 | 144160 | #[repr(align(1), align(2))] 145 | ^^^^^^^^ 146 147error: cannot derive Unaligned with repr(align(N > 1)) 148 --> tests/ui-msrv/enum.rs:166:8 149 | 150166 | #[repr(align(2), align(4))] 151 | ^^^^^^^^ 152 153error[E0565]: meta item in `repr` must be an identifier 154 --> tests/ui-msrv/enum.rs:15:8 155 | 15615 | #[repr("foo")] 157 | ^^^^^ 158 159error[E0552]: unrecognized representation hint 160 --> tests/ui-msrv/enum.rs:21:8 161 | 16221 | #[repr(foo)] 163 | ^^^ 164 165error[E0566]: conflicting representation hints 166 --> tests/ui-msrv/enum.rs:33:8 167 | 16833 | #[repr(u8, u16)] 169 | ^^ ^^^ 170 | 171 = note: `#[deny(conflicting_repr_hints)]` on by default 172 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 173 = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585> 174