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 ad23942 commit 222acaaCopy full SHA for 222acaa
tests/incremental/const-generic-type-cycle.rs
@@ -0,0 +1,16 @@
1
+// Verify that we do not ICE when we try to overwrite an anon-const's type because of a trait
2
+// cycle.
3
+//
4
+// compile-flags: -Zincremental-ignore-spans
5
+// revisions: cpass cfail
6
+
7
+#![feature(trait_alias)]
8
+#![crate_type="lib"]
9
10
+#[cfg(cpass)]
11
+trait Bar<const N: usize> {}
12
13
+#[cfg(cfail)]
14
+trait Bar<const N: dyn BB> {}
15
16
+trait BB = Bar<{ 2 + 1 }>;
0 commit comments