mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
Add ICE regression test
This commit is contained in:
parent
cc68d8135b
commit
c3cfb77bc7
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…
Reference in New Issue
Block a user