]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/types-mismatch-const-args.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / const-generics / types-mismatch-const-args.stderr
CommitLineData
e74abb32
XL
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2 --> $DIR/types-mismatch-const-args.rs:1:12
3 |
4LL | #![feature(const_generics)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8
9error[E0308]: mismatched types
10 --> $DIR/types-mismatch-const-args.rs:13:41
11 |
12LL | let _: A<'a, u32, {2u32}, {3u32}> = A::<'a, u32, {4u32}, {3u32}> { data: PhantomData };
60c5eb7d
XL
13 | -------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `2u32`, found `4u32`
14 | |
15 | expected due to this
e74abb32 16 |
60c5eb7d
XL
17 = note: expected struct `A<'_, _, 2u32, _>`
18 found struct `A<'_, _, 4u32, _>`
e74abb32
XL
19
20error[E0308]: mismatched types
21 --> $DIR/types-mismatch-const-args.rs:15:41
22 |
23LL | let _: A<'a, u16, {2u32}, {3u32}> = A::<'b, u32, {2u32}, {3u32}> { data: PhantomData };
60c5eb7d
XL
24 | -------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u16`, found `u32`
25 | |
26 | expected due to this
e74abb32 27 |
60c5eb7d
XL
28 = note: expected struct `A<'a, u16, _, _>`
29 found struct `A<'b, u32, _, _>`
e74abb32 30
ba9703b0 31error: aborting due to 2 previous errors; 1 warning emitted
e74abb32
XL
32
33For more information about this error, try `rustc --explain E0308`.