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))]
8 #![cfg_attr(min, feature(min_const_generics))]
10 pub struct A<const N: u32>;
13 fn impl_method(&self) -> u32 {
17 fn associated_non_method() -> u32 {
24 assert_eq!(val.impl_method(), 17);
25 assert_eq!(A::<2>::associated_non_method(), 17);