2022-05-22 18:06:36 -05:00
|
|
|
error: expected `{`, found keyword `false`
|
2023-12-29 19:34:50 -06:00
|
|
|
--> $DIR/else-no-if.rs:7:12
|
2022-05-22 18:06:36 -05:00
|
|
|
|
|
|
|
|
LL | } else false {
|
|
|
|
| ---- ^^^^^
|
|
|
|
| |
|
|
|
|
| expected an `if` or a block after this `else`
|
|
|
|
|
|
2022-05-24 16:14:41 -05:00
|
|
|
help: add an `if` if this is the condition of a chained `else if` statement
|
2022-05-22 18:06:36 -05:00
|
|
|
|
|
|
|
|
LL | } else if false {
|
|
|
|
| ++
|
|
|
|
|
|
|
|
error: expected `{`, found `falsy`
|
2023-12-29 19:34:50 -06:00
|
|
|
--> $DIR/else-no-if.rs:14:12
|
2022-05-22 18:06:36 -05:00
|
|
|
|
|
|
|
|
LL | } else falsy() {
|
|
|
|
| ---- ^^^^^
|
|
|
|
| |
|
|
|
|
| expected an `if` or a block after this `else`
|
|
|
|
|
|
2022-05-24 16:14:41 -05:00
|
|
|
help: add an `if` if this is the condition of a chained `else if` statement
|
2022-05-22 18:06:36 -05:00
|
|
|
|
|
|
|
|
LL | } else if falsy() {
|
|
|
|
| ++
|
|
|
|
|
|
|
|
error: expected `{`, found `falsy`
|
2023-12-29 19:34:50 -06:00
|
|
|
--> $DIR/else-no-if.rs:21:12
|
2022-05-22 18:06:36 -05:00
|
|
|
|
|
|
|
|
LL | } else falsy();
|
|
|
|
| ^^^^^ expected `{`
|
|
|
|
|
|
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL | } else { falsy() };
|
|
|
|
| + +
|
|
|
|
|
|
|
|
error: expected `{`, found keyword `loop`
|
2023-12-29 19:34:50 -06:00
|
|
|
--> $DIR/else-no-if.rs:27:12
|
2022-05-22 18:06:36 -05:00
|
|
|
|
|
|
|
|
LL | } else loop{}
|
|
|
|
| ^^^^ expected `{`
|
|
|
|
|
|
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL | } else { loop{} }
|
|
|
|
| + +
|
|
|
|
|
2023-12-29 19:34:50 -06:00
|
|
|
error: expected `{`, found `falsy`
|
|
|
|
--> $DIR/else-no-if.rs:34:12
|
|
|
|
|
|
|
|
|
LL | } else falsy!() {
|
|
|
|
| ---- ^^^^^
|
|
|
|
| |
|
|
|
|
| expected an `if` or a block after this `else`
|
|
|
|
|
|
|
|
|
help: add an `if` if this is the condition of a chained `else if` statement
|
|
|
|
|
|
|
|
|
LL | } else if falsy!() {
|
|
|
|
| ++
|
|
|
|
|
|
|
|
error: expected `{`, found `falsy`
|
|
|
|
--> $DIR/else-no-if.rs:41:12
|
|
|
|
|
|
|
|
|
LL | } else falsy!();
|
|
|
|
| ^^^^^ expected `{`
|
|
|
|
|
|
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL | } else { falsy!() };
|
|
|
|
| + +
|
|
|
|
|
|
|
|
error: expected `{`, found `falsy`
|
|
|
|
--> $DIR/else-no-if.rs:47:12
|
|
|
|
|
|
|
|
|
LL | } else falsy! {} {
|
2023-12-29 19:37:32 -06:00
|
|
|
| ^^^^^ expected `{`
|
2023-12-29 19:34:50 -06:00
|
|
|
|
|
2023-12-29 19:37:32 -06:00
|
|
|
help: try placing this code inside a block
|
2023-12-29 19:34:50 -06:00
|
|
|
|
|
2023-12-29 19:37:32 -06:00
|
|
|
LL | } else { falsy! {} } {
|
|
|
|
| + +
|
2023-12-29 19:34:50 -06:00
|
|
|
|
|
|
|
error: expected `{`, found `falsy`
|
|
|
|
--> $DIR/else-no-if.rs:54:12
|
|
|
|
|
|
|
|
|
LL | } else falsy! {};
|
|
|
|
| ^^^^^ expected `{`
|
|
|
|
|
|
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL | } else { falsy! {} };
|
|
|
|
| + +
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2022-05-22 18:06:36 -05:00
|
|
|
|