about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-30 17:02:44 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-30 17:02:44 +0000
commit3355f4bced511aba46c5a92ea82241b6713331ba (patch)
tree6f3abebfe60198d6b71c9139a81994893bb03274 /compiler/rustc_codegen_llvm/src
parent00f6fe1b6cbb211c4396b306566816f91a4ed371 (diff)
downloadrust-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