fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
519 B18 linesraw
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
7error[E0308]: mismatched types
8  --> $DIR/issue-61882.rs:4:22
9   |
10LL |     const B: A<u8> = Self(0);
11   |                      ^^^^^^^ expected `u8`, found `bool`
12   |
13   = note: expected struct `A<u8>`
14              found struct `A<bool>`
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0308`.