diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-08-30 17:02:44 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-08-30 17:02:44 +0000 |
| commit | 3355f4bced511aba46c5a92ea82241b6713331ba (patch) | |
| tree | 6f3abebfe60198d6b71c9139a81994893bb03274 /compiler/rustc_codegen_llvm/src | |
| parent | 00f6fe1b6cbb211c4396b306566816f91a4ed371 (diff) | |
| download | rust-3355f4bced511aba46c5a92ea82241b6713331ba.tar.gz rust-3355f4bced511aba46c5a92ea82241b6713331ba.zip | |
Suggest constant on unused binding in a pattern
```
error: unused variable: `Batery`
--> $DIR/binding-typo-2.rs:110:9
|
LL | Batery => {}
| ^^^^^^
|
help: if this is intentional, prefix it with an underscore
|
LL | _Batery => {}
| +
help: you might have meant to pattern match on the similarly named constant `Battery`
|
LL | Battery => {}
| +
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
