mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
15 lines
433 B
Plaintext
15 lines
433 B
Plaintext
error: expected identifier, found keyword `async`
|
|
--> $DIR/method-call-pos.rs:4:11
|
|
|
|
|
LL | <_ as async Fn()>(|| async {});
|
|
| ^^^^^ expected identifier, found keyword
|
|
|
|
error: expected one of `(`, `::`, `<`, or `>`, found `Fn`
|
|
--> $DIR/method-call-pos.rs:4:17
|
|
|
|
|
LL | <_ as async Fn()>(|| async {});
|
|
| ^^ expected one of `(`, `::`, `<`, or `>`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|