]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/issue-61882.stderr
Rollup merge of #105664 - notriddle:notriddle/linkwrap, r=GuillaumeGomez
[rust.git] / src / test / ui / self / issue-61882.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-61882.rs:4:27
3    |
4 LL |     const B: A<u8> = Self(0);
5    |                      ---- ^ expected `bool`, found integer
6    |                      |
7    |                      arguments to this function are incorrect
8    |
9 note: tuple struct defined here
10   --> $DIR/issue-61882.rs:1:8
11    |
12 LL | struct A<T>(T);
13    |        ^
14
15 error[E0308]: mismatched types
16   --> $DIR/issue-61882.rs:4:22
17    |
18 LL |     const B: A<u8> = Self(0);
19    |                      ^^^^^^^ expected `u8`, found `bool`
20    |
21    = note: expected struct `A<u8>`
22               found struct `A<bool>`
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0308`.