Add ICE regression test
This commit is contained in:
parent
cc68d8135b
commit
c3cfb77bc7
1 changed files with 15 additions and 0 deletions
15
tests/ui/ice-4545.rs
Normal file
15
tests/ui/ice-4545.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
fn repro() {
|
||||
trait Foo {
|
||||
type Bar;
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
struct Baz<T: Foo> {
|
||||
field: T::Bar,
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
repro();
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue