summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-non-snake-case-functions.stderr
blob: f6ac6b99b602f378719cba59bf779aa83f05bc84 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
error: method `Foo_Method` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:7:8
   |
LL |     fn Foo_Method() {}
   |        ^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
   |
note: the lint level is defined here
  --> $DIR/lint-non-snake-case-functions.rs:1:9
   |
LL | #![deny(non_snake_case)]
   |         ^^^^^^^^^^^^^^

error: method `foo__method` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:11:8
   |
LL |     fn foo__method(&self) {}
   |        ^^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`

error: method `xyZ` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:14:12
   |
LL |     pub fn xyZ(&mut self) {}
   |            ^^^ help: convert the identifier to snake case: `xy_z`

error: method `render_HTML` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:17:8
   |
LL |     fn render_HTML() {}
   |        ^^^^^^^^^^^ help: convert the identifier to snake case: `render_html`

error: trait method `ABC` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:22:8
   |
LL |     fn ABC();
   |        ^^^ help: convert the identifier to snake case: `abc`

error: trait method `a_b_C` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:25:8
   |
LL |     fn a_b_C(&self) {}
   |        ^^^^^ help: convert the identifier to snake case (notice the capitalization): `a_b_c`

error: trait method `something__else` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:28:8
   |
LL |     fn something__else(&mut self);
   |        ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `something_else`

error: function `Cookie` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:38:4
   |
LL | fn Cookie() {}
   |    ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `cookie`

error: function `bi_S_Cuit` should have a snake case name
  --> $DIR/lint-non-snake-case-functions.rs:41:8
   |
LL | pub fn bi_S_Cuit() {}
   |        ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bi_s_cuit`

error: aborting due to 9 previous errors