]> git.proxmox.com Git - rustc.git/blob - tests/ui/span/issue-24690.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }