summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/type-dependent/issue-70217.rs
blob: 933ca0276098fadd6d6bfd27adb587c659fe5b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

struct Struct<const N: usize>;

impl<const N: usize> Struct<N> {
    fn method<const M: usize>(&self) {}
}

fn test<const N: usize, const M: usize>(x: Struct<N>) {
    Struct::<N>::method::<M>(&x);
    x.method::<N>();
}

fn main() {}