]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0308]: mismatched types |
5869c6ff | 2 | --> $DIR/types-mismatch-const-args.rs:14:41 |
1b1a35ee | 3 | | |
94222f64 | 4 | LL | let _: A<'a, u32, {2u32}, {3u32}> = A::<'a, u32, {2u32 + 2u32}, {3u32}> { data: PhantomData }; |
064997fb | 5 | | -------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `2`, found `4` |
1b1a35ee XL |
6 | | | |
7 | | expected due to this | |
8 | | | |
064997fb FG |
9 | = note: expected struct `A<'_, _, 2, _>` |
10 | found struct `A<'_, _, 4, _>` | |
1b1a35ee XL |
11 | |
12 | error[E0308]: mismatched types | |
5869c6ff | 13 | --> $DIR/types-mismatch-const-args.rs:16:41 |
1b1a35ee XL |
14 | | |
15 | LL | let _: A<'a, u16, {2u32}, {3u32}> = A::<'b, u32, {2u32}, {3u32}> { data: PhantomData }; | |
9ffffee4 | 16 | | -------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `A<'_, u16, 2, 3>`, found `A<'_, u32, 2, 3>` |
1b1a35ee XL |
17 | | | |
18 | | expected due to this | |
19 | | | |
20 | = note: expected struct `A<'a, u16, _, _>` | |
21 | found struct `A<'b, u32, _, _>` | |
22 | ||
5099ac24 FG |
23 | error[E0308]: mismatched types |
24 | --> $DIR/types-mismatch-const-args.rs:18:41 | |
25 | | | |
26 | LL | let _: A<'a, u16, {4u32}, {3u32}> = A::<'b, u32, {2u32}, {3u32}> { data: PhantomData }; | |
9ffffee4 | 27 | | -------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `A<'_, u16, 4, 3>`, found `A<'_, u32, 2, 3>` |
5099ac24 FG |
28 | | | |
29 | | expected due to this | |
30 | | | |
064997fb FG |
31 | = note: expected struct `A<'a, u16, 4, _>` |
32 | found struct `A<'b, u32, 2, _>` | |
5099ac24 FG |
33 | |
34 | error: aborting due to 3 previous errors | |
1b1a35ee XL |
35 | |
36 | For more information about this error, try `rustc --explain E0308`. |