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