]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-non-snake-case-functions.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / lint-non-snake-case-functions.stderr
1 error: method `Foo_Method` should have a snake case name
2   --> $DIR/lint-non-snake-case-functions.rs:7:8
3    |
4 LL |     fn Foo_Method() {}
5    |        ^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
6    |
7 note: the lint level is defined here
8   --> $DIR/lint-non-snake-case-functions.rs:1:9
9    |
10 LL | #![deny(non_snake_case)]
11    |         ^^^^^^^^^^^^^^
12
13 error: method `foo__method` should have a snake case name
14   --> $DIR/lint-non-snake-case-functions.rs:11:8
15    |
16 LL |     fn foo__method(&self) {}
17    |        ^^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
18
19 error: method `xyZ` should have a snake case name
20   --> $DIR/lint-non-snake-case-functions.rs:14:12
21    |
22 LL |     pub fn xyZ(&mut self) {}
23    |            ^^^ help: convert the identifier to snake case: `xy_z`
24
25 error: method `render_HTML` should have a snake case name
26   --> $DIR/lint-non-snake-case-functions.rs:17:8
27    |
28 LL |     fn render_HTML() {}
29    |        ^^^^^^^^^^^ help: convert the identifier to snake case: `render_html`
30
31 error: trait method `ABC` should have a snake case name
32   --> $DIR/lint-non-snake-case-functions.rs:22:8
33    |
34 LL |     fn ABC();
35    |        ^^^ help: convert the identifier to snake case: `abc`
36
37 error: trait method `a_b_C` should have a snake case name
38   --> $DIR/lint-non-snake-case-functions.rs:25:8
39    |
40 LL |     fn a_b_C(&self) {}
41    |        ^^^^^ help: convert the identifier to snake case (notice the capitalization): `a_b_c`
42
43 error: trait method `something__else` should have a snake case name
44   --> $DIR/lint-non-snake-case-functions.rs:28:8
45    |
46 LL |     fn something__else(&mut self);
47    |        ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `something_else`
48
49 error: function `Cookie` should have a snake case name
50   --> $DIR/lint-non-snake-case-functions.rs:38:4
51    |
52 LL | fn Cookie() {}
53    |    ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cookie`
54
55 error: function `bi_S_Cuit` should have a snake case name
56   --> $DIR/lint-non-snake-case-functions.rs:41:8
57    |
58 LL | pub fn bi_S_Cuit() {}
59    |        ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bi_s_cuit`
60
61 error: aborting due to 9 previous errors
62