Add ICE regression test

This commit is contained in:
flip1995 2019-09-17 09:48:25 +02:00
parent cc68d8135b
commit c3cfb77bc7
No known key found for this signature in database
GPG Key ID: 693086869D506637

15
tests/ui/ice-4545.rs Normal file
View File

@ -0,0 +1,15 @@
fn repro() {
trait Foo {
type Bar;
}
#[allow(dead_code)]
struct Baz<T: Foo> {
field: T::Bar,
}
}
fn main() {
repro();
}