rust/tests/ui/generic-associated-types/const_params_have_right_typ...

11 lines
189 B
Rust

trait Trait {
type Foo<const N: u8>;
}
impl Trait for () {
type Foo<const N: u64> = u32;
//~^ error: type `Foo` has an incompatible generic parameter for trait
}
fn main() {}