about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-09-17 09:48:25 +0200
committerflip1995 <hello@philkrones.com>2019-09-17 09:49:08 +0200
commitc3cfb77bc74f85471828e85ba796a75be6e2c8e0 (patch)
tree62fb38ea24b5d97dfb8fda32d38f749c06379d23
parentcc68d8135b9fa7c3c9432fa154d5d1896408231c (diff)
downloadrust-c3cfb77bc74f85471828e85ba796a75be6e2c8e0.tar.gz
rust-c3cfb77bc74f85471828e85ba796a75be6e2c8e0.zip
Add ICE regression test
-rw-r--r--tests/ui/ice-4545.rs15
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();
+}
+