diff options
| author | flip1995 <hello@philkrones.com> | 2019-09-17 09:48:25 +0200 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-09-17 09:49:08 +0200 |
| commit | c3cfb77bc74f85471828e85ba796a75be6e2c8e0 (patch) | |
| tree | 62fb38ea24b5d97dfb8fda32d38f749c06379d23 | |
| parent | cc68d8135b9fa7c3c9432fa154d5d1896408231c (diff) | |
| download | rust-c3cfb77bc74f85471828e85ba796a75be6e2c8e0.tar.gz rust-c3cfb77bc74f85471828e85ba796a75be6e2c8e0.zip | |
Add ICE regression test
| -rw-r--r-- | tests/ui/ice-4545.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/ice-4545.rs b/tests/ui/ice-4545.rs new file mode 100644 index 00000000000..58ef4c798dd --- /dev/null +++ b/tests/ui/ice-4545.rs @@ -0,0 +1,15 @@ +fn repro() { + trait Foo { + type Bar; + } + + #[allow(dead_code)] + struct Baz<T: Foo> { + field: T::Bar, + } +} + +fn main() { + repro(); +} + |
