]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/const_params_have_right_type.rs
Rollup merge of #97240 - TaKO8Ki:improve-errors-about-typos-on-variables, r=compiler...
[rust.git] / src / test / ui / generic-associated-types / const_params_have_right_type.rs
1 #![feature(generic_associated_types)]
2
3 trait Trait {
4     type Foo<const N: u8>;
5 }
6
7 impl Trait for () {
8     type Foo<const N: u64> = u32;
9     //~^ error: type `Foo` has an incompatible generic parameter for trait
10 }
11
12 fn main() {}