Add a note to unused variables
This commit is contained in:
parent
b6179602be
commit
9b0607ab4e
3 changed files with 19 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ note: lint level defined here
|
|||
18 | #![warn(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[warn(unused_variables)] implied by #[warn(unused)]
|
||||
= note: to disable this warning, consider using `_theOtherTwo` instead
|
||||
|
||||
warning: variable `theTwo` should have a snake case name such as `the_two`
|
||||
--> $DIR/issue-24690.rs:22:9
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue