Skip to content

Commit 222acaa

Browse files
committed
Add incremental test.
1 parent ad23942 commit 222acaa

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)