Skip to content

Commit b380d35

Browse files
committed
add ui test for issue-62097
1 parent 9248b01 commit b380d35

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// edition:2018
2+
async fn foo<F>(fun: F)
3+
where
4+
F: FnOnce() + 'static
5+
{
6+
fun()
7+
}
8+
9+
struct Struct;
10+
11+
impl Struct {
12+
pub async fn run_dummy_fn(&self) { //~ ERROR cannot infer
13+
foo(|| self.bar()).await;
14+
}
15+
16+
pub fn bar(&self) {}
17+
}
18+
19+
fn main() {}

0 commit comments

Comments
 (0)