]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-24690.stderr
rustdoc: pretty-print Unevaluated expressions in types.
[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    = note: to disable this warning, consider using `_theOtherTwo` instead
14
15 warning: variable `theTwo` should have a snake case name such as `the_two`
16   --> $DIR/issue-24690.rs:22:9
17    |
18 22 |     let theTwo = 2;
19    |         ^^^^^^
20    |
21    = note: #[warn(non_snake_case)] on by default
22
23 warning: variable `theOtherTwo` should have a snake case name such as `the_other_two`
24   --> $DIR/issue-24690.rs:23:9
25    |
26 23 |     let theOtherTwo = 2;
27    |         ^^^^^^^^^^^
28
29 error: compilation successful
30   --> $DIR/issue-24690.rs:21:1
31    |
32 21 | / fn main() {
33 22 | |     let theTwo = 2;
34 23 | |     let theOtherTwo = 2;
35 24 | |     println!("{}", theTwo);
36 25 | | }
37    | |_^
38