]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/types-mismatch-const-args.full.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / types-mismatch-const-args.full.stderr
1 error[E0308]: mismatched types
2   --> $DIR/types-mismatch-const-args.rs:15:41
3    |
4 LL |     let _: A<'a, u32, {2u32}, {3u32}> = A::<'a, u32, {4u32}, {3u32}> { data: PhantomData };
5    |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `2_u32`, found `4_u32`
6    |
7    = note: expected type `2_u32`
8               found type `4_u32`
9
10 error[E0308]: mismatched types
11   --> $DIR/types-mismatch-const-args.rs:17:41
12    |
13 LL |     let _: A<'a, u16, {2u32}, {3u32}> = A::<'b, u32, {2u32}, {3u32}> { data: PhantomData };
14    |            --------------------------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32`
15    |            |
16    |            expected due to this
17    |
18    = note: expected struct `A<'a, u16, {2u32}, {3u32}>`
19               found struct `A<'b, u32, {2u32}, {3u32}>`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.