]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/const_params_have_right_type.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / const_params_have_right_type.stderr
1 error[E0053]: type `Foo` has an incompatible generic parameter for trait `Trait`
2   --> $DIR/const_params_have_right_type.rs:8:14
3    |
4 LL | trait Trait {
5    |       -----
6 LL |     type Foo<const N: u8>;
7    |              ----------- expected const parameter of type `u8`
8 ...
9 LL | impl Trait for () {
10    | -----------------
11 LL |     type Foo<const N: u64> = u32;
12    |              ^^^^^^^^^^^^ found const parameter of type `u64`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0053`.