4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(full, allow(incomplete_features))]
6 #![cfg_attr(min, feature(min_const_generics))]
8 trait T<const A: usize> {
9 fn l<const N: bool>() -> usize;
10 fn r<const N: bool>() -> bool;
15 impl<const N: usize> T<N> for S {
16 fn l<const M: bool>() -> usize { N }
17 fn r<const M: bool>() -> bool { M }
21 assert_eq!(<S as T<123>>::l::<true>(), 123);
22 assert!(<S as T<123>>::r::<true>());