Add a note to unused variables

This commit is contained in:
Guillaume Gomez 2017-08-13 20:07:09 +02:00
parent b6179602be
commit 9b0607ab4e
3 changed files with 19 additions and 3 deletions

View file

@ -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