We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333dce9 commit 137ca05Copy full SHA for 137ca05
src/test/ui/const-generics/type-dependent/issue-70217.rs
@@ -0,0 +1,16 @@
1
+// check-pass
2
+#![feature(const_generics)]
3
+#![allow(incomplete_features)]
4
+
5
+struct Struct<const N: usize>;
6
7
+impl<const N: usize> Struct<N> {
8
+ fn method<const M: usize>(&self) {}
9
+}
10
11
+fn test<const N: usize, const M: usize>(x: Struct<N>) {
12
+ Struct::<N>::method::<M>(&x);
13
+ x.method::<N>();
14
15
16
+fn main() {}
0 commit comments