about summary refs log tree commit diff
path: root/src/test/ui/span/issue-24690.stderr
blob: b496a1a76c017424252b586fa89452001f6cfb0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
warning: unused variable: `theOtherTwo`
  --> $DIR/issue-24690.rs:23:9
   |
LL |     let theOtherTwo = 2; //~ WARN should have a snake case name
   |         ^^^^^^^^^^^ help: consider using `_theOtherTwo` instead
   |
note: lint level defined here
  --> $DIR/issue-24690.rs:18:9
   |
LL | #![warn(unused)]
   |         ^^^^^^
   = note: #[warn(unused_variables)] implied by #[warn(unused)]

warning: variable `theTwo` should have a snake case name such as `the_two`
  --> $DIR/issue-24690.rs:22:9
   |
LL |     let theTwo = 2; //~ WARN should have a snake case name
   |         ^^^^^^
   |
   = note: #[warn(non_snake_case)] on by default

warning: variable `theOtherTwo` should have a snake case name such as `the_other_two`
  --> $DIR/issue-24690.rs:23:9
   |
LL |     let theOtherTwo = 2; //~ WARN should have a snake case name
   |         ^^^^^^^^^^^

error: compilation successful
  --> $DIR/issue-24690.rs:21:1
   |
LL | / fn main() { //~ ERROR compilation successful
LL | |     let theTwo = 2; //~ WARN should have a snake case name
LL | |     let theOtherTwo = 2; //~ WARN should have a snake case name
LL | |     //~^ WARN unused variable
LL | |     println!("{}", theTwo);
LL | | }
   | |_^

error: aborting due to previous error