]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/const_params_have_right_type.rs
Auto merge of #97800 - pnkfelix:issue-97463-fix-aarch64-call-abi-does-not-zeroext...
[rust.git] / src / test / 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() {}