2 #![feature(generic_associated_types)]
4 // This test unsures that with_opt_const_param returns the
5 // def_id of the N param in the Bar::Assoc GAT.
8 type Assoc<const N: usize>;
11 fn foo(&self) -> Self::Assoc<3>;
15 type Assoc<const N: usize> = [(); N];
19 fn foo(&self) -> Self::Assoc<3> {
25 assert_eq!(().foo(), [(); 3]);