]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/while-if-let-without-body.stderr
Auto merge of #100678 - GuillaumeGomez:improve-rustdoc-json-tests, r=aDotInTheVoid
[rust.git] / src / test / ui / parser / while-if-let-without-body.stderr
1 error: expected `{`, found `}`
2   --> $DIR/while-if-let-without-body.rs:11:1
3    |
4 LL |       while if let Some(thing) = container.get(i) {
5    |  _____-----_-
6    | |     |
7    | |     while parsing the body of this `while` expression
8 LL | |
9 LL | |
10 LL | |         println!("{:?}", thing);
11 LL | |         i += 1;
12 LL | |     }
13    | |_____- this `while` condition successfully parsed
14 LL |   }
15    |   ^ expected `{`
16
17 error: aborting due to previous error
18