Skip to content

Commit a8c9784

Browse files
committed
Add regression test
1 parent 90b6744 commit a8c9784

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// check-pass
2+
3+
fn foo<F>(_: F)
4+
where
5+
F: 'static,
6+
{
7+
}
8+
9+
fn from<F: Send>(f: F) -> impl Send {
10+
f
11+
}
12+
13+
fn bar<T>() {
14+
foo(from(|| ()))
15+
}
16+
17+
fn main() {
18+
}

0 commit comments

Comments
 (0)