1error[E0308]: mismatched types
2   --> $DIR/all_defined.rs:115:1
3    |
4115 | / bitflags! {
5116 | |     struct Flags128: MyInt {
6117 | |         const A = MyInt(0b0000_0001u8);
7118 | |         const B = MyInt(0b0000_0010u8);
8119 | |         const C = MyInt(0b0000_0100u8);
9120 | |     }
10121 | | }
11    | |_^ expected struct `MyInt`, found integer
12    |
13    = note: this error originates in the macro `__impl_all_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15error[E0308]: mismatched types
16   --> $DIR/all_defined.rs:115:1
17    |
18115 | / bitflags! {
19116 | |     struct Flags128: MyInt {
20117 | |         const A = MyInt(0b0000_0001u8);
21118 | |         const B = MyInt(0b0000_0010u8);
22119 | |         const C = MyInt(0b0000_0100u8);
23120 | |     }
24121 | | }
25    | |_^ expected struct `MyInt`, found integer
26    |
27    = note: this error originates in the macro `__impl_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
28