fork/rust

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

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

master
2.1 KiB86 linesraw
1error: missing condition for `if` expression
2  --> $DIR/bad-if-statements.rs:2:7
3   |
4LL |     if {}
5   |       ^- if this block is the condition of the `if` expression, then it must be followed by another block
6   |       |
7   |       expected condition here
8
9error: this `if` expression is missing a block after the condition
10  --> $DIR/bad-if-statements.rs:7:5
11   |
12LL |     if true && {}
13   |     ^^
14   |
15help: this binary operation is possibly unfinished
16  --> $DIR/bad-if-statements.rs:7:8
17   |
18LL |     if true && {}
19   |        ^^^^^^^
20
21error: expected `{`, found `x`
22  --> $DIR/bad-if-statements.rs:13:13
23   |
24LL |     if true x
25   |             ^ expected `{`
26   |
27note: the `if` expression is missing a block after this condition
28  --> $DIR/bad-if-statements.rs:13:8
29   |
30LL |     if true x
31   |        ^^^^
32help: try placing this code inside a block
33   |
34LL |     if true { x }
35   |             +   +
36
37error: missing condition for `if` expression
38  --> $DIR/bad-if-statements.rs:18:7
39   |
40LL |     if {} else {}
41   |       ^- if this block is the condition of the `if` expression, then it must be followed by another block
42   |       |
43   |       expected condition here
44
45error: this `if` expression is missing a block after the condition
46  --> $DIR/bad-if-statements.rs:23:5
47   |
48LL |     if true && {} else {}
49   |     ^^
50   |
51help: this binary operation is possibly unfinished
52  --> $DIR/bad-if-statements.rs:23:8
53   |
54LL |     if true && {} else {}
55   |        ^^^^^^^
56
57error: expected `{`, found `x`
58  --> $DIR/bad-if-statements.rs:29:13
59   |
60LL |     if true x else {}
61   |             ^ expected `{`
62   |
63note: the `if` expression is missing a block after this condition
64  --> $DIR/bad-if-statements.rs:29:8
65   |
66LL |     if true x else {}
67   |        ^^^^
68help: try placing this code inside a block
69   |
70LL |     if true { x } else {}
71   |             +   +
72
73error: this `if` expression is missing a block after the condition
74  --> $DIR/bad-if-statements.rs:34:5
75   |
76LL |     if true else {}
77   |     ^^
78   |
79help: add a block here
80  --> $DIR/bad-if-statements.rs:34:12
81   |
82LL |     if true else {}
83   |            ^
84
85error: aborting due to 7 previous errors
86