1 // Test that a method/associated non-method within an impl block of a concrete const type i.e. A<2>,
5 #![feature(const_generics)]
6 //~^ WARN the feature `const_generics` is incomplete
8 pub struct A<const N: u32>;
11 fn impl_method(&self) -> u32 {
15 fn associated_non_method() -> u32 {
22 assert_eq!(val.impl_method(), 17);
23 assert_eq!(A::<2>::associated_non_method(), 17);