diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-11-14 20:39:25 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-11-16 20:03:31 +0000 |
| commit | 629a69f3e2728251774f825ff54cb642b38249df (patch) | |
| tree | d90b3e2ce53111f6ed5d02ee48d932164b54813e /compiler/rustc_codegen_gcc/example/alloc_system.rs | |
| parent | 04fe8391775683e58d861f28678bf80940c91f44 (diff) | |
| download | rust-629a69f3e2728251774f825ff54cb642b38249df.tar.gz rust-629a69f3e2728251774f825ff54cb642b38249df.zip | |
Better account for `else if` macro conditions mising an `if`
If a macro statement has been parsed after `else`, suggest a missing `if`:
```
error: expected `{`, found `falsy`
--> $DIR/else-no-if.rs:47: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! {} {
| ++
```
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_system.rs')
0 files changed, 0 insertions, 0 deletions
