Skip to content

Commit c3cfb77

Browse files
committed
Add ICE regression test
1 parent cc68d81 commit c3cfb77

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/ui/ice-4545.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
fn repro() {
2+
trait Foo {
3+
type Bar;
4+
}
5+
6+
#[allow(dead_code)]
7+
struct Baz<T: Foo> {
8+
field: T::Bar,
9+
}
10+
}
11+
12+
fn main() {
13+
repro();
14+
}
15+

0 commit comments

Comments
 (0)