Skip to content

Commit f83b36c

Browse files
committed
Add ICE reproduction for issue rust-lang/rust#89333.
1 parent 15a740f commit f83b36c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ices/89333.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn main() {
2+
test(&|| 0);
3+
}
4+
5+
fn test<T>(arg: &impl Fn() -> T)
6+
where
7+
for<'a> &'a T: Default,
8+
{
9+
}

0 commit comments

Comments
 (0)