mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-03 15:29:44 +00:00
29 lines
773 B
Plaintext
29 lines
773 B
Plaintext
error: expected one of `async`, `|`, or `||`, found `{`
|
|
--> $DIR/parse.rs:5:12
|
|
|
|
|
LL | || use {
|
|
| -- ^ expected one of `async`, `|`, or `||`
|
|
| |
|
|
| while parsing the body of this closure
|
|
|
|
|
help: you might have meant to open the body of the closure, instead of enclosing the closure in a block
|
|
|
|
|
LL ~ fn parse1()
|
|
LL ~ || { use {
|
|
|
|
|
|
|
error: expected one of `async`, `|`, or `||`, found keyword `use`
|
|
--> $DIR/parse.rs:11:10
|
|
|
|
|
LL | move use || {
|
|
| ^^^ expected one of `async`, `|`, or `||`
|
|
|
|
error: expected one of `async`, `|`, or `||`, found keyword `move`
|
|
--> $DIR/parse.rs:17:9
|
|
|
|
|
LL | use move || {
|
|
| ^^^^ expected one of `async`, `|`, or `||`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|