about summary refs log tree commit diff
path: root/tests/ui/ergonomic-clones/closure/parse.stderr
blob: c37cb71394be890c3c12c71af78ffda4ef74cc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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