]> git.lizzy.rs Git - rust.git/commitdiff
Add regression test for ICE 6139
authorflip1995 <hello@philkrones.com>
Fri, 9 Oct 2020 20:21:47 +0000 (22:21 +0200)
committerflip1995 <hello@philkrones.com>
Fri, 9 Oct 2020 20:21:47 +0000 (22:21 +0200)
tests/ui/crashes/ice-6139.rs [new file with mode: 0644]

diff --git a/tests/ui/crashes/ice-6139.rs b/tests/ui/crashes/ice-6139.rs
new file mode 100644 (file)
index 0000000..f3966e4
--- /dev/null
@@ -0,0 +1,7 @@
+trait T<'a> {}
+
+fn foo(_: Vec<Box<dyn T<'_>>>) {}
+
+fn main() {
+    foo(vec![]);
+}