fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.0 KiB67 linesraw
1warning: unused variable: `Mod`
2  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:12:9
3   |
4LL |     let Mod: usize = 0;
5   |         ^^^ help: if this is intentional, prefix it with an underscore: `_Mod`
6   |
7note: the lint level is defined here
8  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:1:9
9   |
10LL | #![warn(unused)]
11   |         ^^^^^^
12   = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
13
14warning: unused variable: `Super`
15  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:16:9
16   |
17LL |     let Super: usize = 0;
18   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_Super`
19
20error: module `Impl` should have a snake case name
21  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:5:5
22   |
23LL | mod Impl {}
24   |     ^^^^
25   |
26note: the lint level is defined here
27  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:3:9
28   |
29LL | #![deny(non_snake_case)]
30   |         ^^^^^^^^^^^^^^
31help: rename the identifier or convert it to a snake case raw identifier
32   |
33LL | mod r#impl {}
34   |     ~~~~~~
35
36error: function `While` should have a snake case name
37  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:8:4
38   |
39LL | fn While() {}
40   |    ^^^^^
41   |
42help: rename the identifier or convert it to a snake case raw identifier
43   |
44LL | fn r#while() {}
45   |    ~~~~~~~
46
47error: variable `Mod` should have a snake case name
48  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:12:9
49   |
50LL |     let Mod: usize = 0;
51   |         ^^^
52   |
53help: rename the identifier or convert it to a snake case raw identifier
54   |
55LL |     let r#mod: usize = 0;
56   |         ~~~~~
57
58error: variable `Super` should have a snake case name
59  --> $DIR/lint-non-snake-case-identifiers-suggestion-reserved.rs:16:9
60   |
61LL |     let Super: usize = 0;
62   |         ^^^^^ help: rename the identifier
63   |
64   = note: `super` cannot be used as a raw identifier
65
66error: aborting due to 4 previous errors; 2 warnings emitted
67