Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit ea6c3f1

Browse files
camelidrustbot
andauthored
Add ICE reproduction for issue rust-lang/rust#89333. (#981)
Co-authored-by: rustbot <[email protected]>
1 parent 15a740f commit ea6c3f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ices/89333.rs

+9
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)