2 #![feature(generic_associated_types)]
3 #![allow(incomplete_features)]
5 // This test unsures that with_opt_const_param returns the
6 // def_id of the N param in the Foo::Assoc GAT.
9 type Assoc<const N: usize>;
10 fn foo<const N: usize>(&self) -> Self::Assoc<N>;
14 type Assoc<const N: usize> = [(); N];
15 fn foo<const N: usize>(&self) -> Self::Assoc<N> {
21 assert_eq!(().foo::<10>(), [(); 10]);