]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-24690.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / issue-24690.rs
1 //! A test to ensure that helpful `note` messages aren't emitted more often
2 //! than necessary.
3
4 // check-pass
5
6 // Although there are three warnings, we should only get two "lint level defined
7 // here" notes pointing at the `warnings` span, one for each error type.
8 #![warn(unused)]
9
10
11 fn main() {
12     let theTwo = 2; //~ WARN should have a snake case name
13     let theOtherTwo = 2; //~ WARN should have a snake case name
14     //~^ WARN unused variable
15     println!("{}", theTwo);
16 }