2 #![feature(const_generics)]
3 #![allow(incomplete_features)]
5 struct Struct<const N: usize>;
7 impl<const N: usize> Struct<N> {
8 fn method<const M: usize>(&self) {}
11 fn test<const N: usize, const M: usize>(x: Struct<N>) {
12 Struct::<N>::method::<M>(&x);