3 // This test unsures that with_opt_const_param returns the
4 // def_id of the N param in the Foo::Assoc GAT.
7 type Assoc<const N: usize>;
8 fn foo(&self) -> Self::Assoc<3>;
12 type Assoc<const N: usize> = [(); N];
13 fn foo(&self) -> Self::Assoc<3> {
19 assert_eq!(().foo(), [(); 3]);