fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB50 linesraw
1error: expected `{`, found keyword `false`
2  --> $DIR/else-no-if.rs:3:12
3   |
4LL |     } else false {
5   |       ---- ^^^^^
6   |       |
7   |       expected an `if` or a block after this `else`
8   |
9help: add an `if` if this is the condition of a chained `else if` statement
10   |
11LL |     } else if false {
12   |            ++
13
14error: expected `{`, found `falsy`
15  --> $DIR/else-no-if.rs:10:12
16   |
17LL |     } else falsy() {
18   |       ---- ^^^^^
19   |       |
20   |       expected an `if` or a block after this `else`
21   |
22help: add an `if` if this is the condition of a chained `else if` statement
23   |
24LL |     } else if falsy() {
25   |            ++
26
27error: expected `{`, found `falsy`
28  --> $DIR/else-no-if.rs:17:12
29   |
30LL |     } else falsy();
31   |            ^^^^^ expected `{`
32   |
33help: try placing this code inside a block
34   |
35LL |     } else { falsy() };
36   |            +         +
37
38error: expected `{`, found keyword `loop`
39  --> $DIR/else-no-if.rs:23:12
40   |
41LL |     } else loop{}
42   |            ^^^^ expected `{`
43   |
44help: try placing this code inside a block
45   |
46LL |     } else { loop{} }
47   |            +        +
48
49error: aborting due to 4 previous errors
50