Debian Codegraph @

.cargo/vendor/bitflags-1.3.2/tests/compile-fail/non_integer_base/all_defined.stderr.beta

raw
1 error[E0308]: mismatched types
2 --> $DIR/all_defined.rs:115:1
3 |
4 115 | / bitflags! {
5 116 | | struct Flags128: MyInt {
6 117 | | const A = MyInt(0b0000_0001u8);
7 118 | | const B = MyInt(0b0000_0010u8);
8 119 | | const C = MyInt(0b0000_0100u8);
9 120 | | }
10 121 | | }
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
15 error[E0308]: mismatched types
16 --> $DIR/all_defined.rs:115:1
17 |
18 115 | / bitflags! {
19 116 | | struct Flags128: MyInt {
20 117 | | const A = MyInt(0b0000_0001u8);
21 118 | | const B = MyInt(0b0000_0010u8);
22 119 | | const C = MyInt(0b0000_0100u8);
23 120 | | }
24 121 | | }
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)