Skip to content

Commit

Permalink
Add ICE regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Sep 17, 2019
1 parent cc68d81 commit c3cfb77
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/ui/ice-4545.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
fn repro() {
trait Foo {
type Bar;
}

#[allow(dead_code)]
struct Baz<T: Foo> {
field: T::Bar,
}
}

fn main() {
repro();
}

0 comments on commit c3cfb77

Please sign in to comment.