1 // Test that a method/associated non-method within an impl block of a concrete const type i.e. A<2>,
6 #![cfg_attr(full, feature(const_generics))]
7 #![cfg_attr(full, allow(incomplete_features))]
9 pub struct A<const N: u32>;
12 fn impl_method(&self) -> u32 {
16 fn associated_non_method() -> u32 {
23 assert_eq!(val.impl_method(), 17);
24 assert_eq!(A::<2>::associated_non_method(), 17);