]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-24690.stderr
Auto merge of #43750 - tbu-:pr_fn_unreachable, r=sfackler
[rust.git] / src / test / ui / span / issue-24690.stderr
1 warning: unused variable: `theOtherTwo`
2   --> $DIR/issue-24690.rs:23:9
3    |
4 23 |     let theOtherTwo = 2;
5    |         ^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/issue-24690.rs:18:9
9    |
10 18 | #![warn(unused)]
11    |         ^^^^^^
12    = note: #[warn(unused_variables)] implied by #[warn(unused)]
13
14 warning: variable `theTwo` should have a snake case name such as `the_two`
15   --> $DIR/issue-24690.rs:22:9
16    |
17 22 |     let theTwo = 2;
18    |         ^^^^^^
19    |
20    = note: #[warn(non_snake_case)] on by default
21
22 warning: variable `theOtherTwo` should have a snake case name such as `the_other_two`
23   --> $DIR/issue-24690.rs:23:9
24    |
25 23 |     let theOtherTwo = 2;
26    |         ^^^^^^^^^^^
27
28 error: compilation successful
29   --> $DIR/issue-24690.rs:21:1
30    |
31 21 | / fn main() {
32 22 | |     let theTwo = 2;
33 23 | |     let theOtherTwo = 2;
34 24 | |     println!("{}", theTwo);
35 25 | | }
36    | |_^
37