fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-61882.rs:4:27 3 | 4LL | const B: A<u8> = Self(0); 5 | ---- ^ expected `bool`, found integer 6 | | 7 | arguments to this function are incorrect 8 | 9note: tuple struct defined here 10 --> $DIR/issue-61882.rs:1:8 11 | 12LL | struct A<T>(T); 13 | ^ 14 15error[E0308]: mismatched types 16 --> $DIR/issue-61882.rs:4:22 17 | 18LL | const B: A<u8> = Self(0); 19 | ^^^^^^^ expected `A<u8>`, found `A<bool>` 20 | 21 = note: expected struct `A<u8>` 22 found struct `A<bool>` 23 24error: aborting due to 2 previous errors 25 26For more information about this error, try `rustc --explain E0308`.