]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/const_params_have_right_type.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / generic-associated-types / const_params_have_right_type.rs
1 trait Trait {
2     type Foo<const N: u8>;
3 }
4
5 impl Trait for () {
6     type Foo<const N: u64> = u32;
7     //~^ error: type `Foo` has an incompatible generic parameter for trait
8 }
9
10 fn main() {}