mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 17:48:10 +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
|
|
|