2019-06-16 09:23:41 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-61882.rs:4:27
|
|
|
|
|
|
|
|
|
LL | const B: A<u8> = Self(0);
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^ expected `bool`, found integer
|
2019-06-16 09:23:41 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-61882.rs:4:22
|
|
|
|
|
|
|
|
|
LL | const B: A<u8> = Self(0);
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^ expected `u8`, found `bool`
|
2019-06-16 09:23:41 -05:00
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected struct `A<u8>`
|
|
|
|
found struct `A<bool>`
|
2019-06-16 09:23:41 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|