summaryrefslogtreecommitdiffstats
path: root/tests/incremental/const-generics/issue-61338.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/incremental/const-generics/issue-61338.rs')
-rw-r--r--tests/incremental/const-generics/issue-61338.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/incremental/const-generics/issue-61338.rs b/tests/incremental/const-generics/issue-61338.rs
new file mode 100644
index 000000000..e9d67fee2
--- /dev/null
+++ b/tests/incremental/const-generics/issue-61338.rs
@@ -0,0 +1,12 @@
+// revisions:rpass1
+
+struct Struct<T>(T);
+
+impl<T, const N: usize> Struct<[T; N]> {
+ fn f() {}
+ fn g() { Self::f(); }
+}
+
+fn main() {
+ Struct::<[u32; 3]>::g();
+}