rust/src/test/ui/lint/lint-non-snake-case-functions.stderr

63 lines
2.1 KiB
Plaintext
Raw Normal View History

error: method `Foo_Method` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:7:8
2018-08-08 07:28:26 -05:00
|
LL | fn Foo_Method() {}
| ^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
2018-08-08 07:28:26 -05:00
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-non-snake-case-functions.rs:1:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(non_snake_case)]
| ^^^^^^^^^^^^^^
error: method `foo__method` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:11:8
2018-08-08 07:28:26 -05:00
|
LL | fn foo__method(&self) {}
| ^^^^^^^^^^^ help: convert the identifier to snake case: `foo_method`
2018-08-08 07:28:26 -05:00
error: method `xyZ` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:14:12
2018-08-08 07:28:26 -05:00
|
LL | pub fn xyZ(&mut self) {}
| ^^^ help: convert the identifier to snake case: `xy_z`
2018-08-08 07:28:26 -05:00
error: method `render_HTML` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:17:8
2018-08-08 07:28:26 -05:00
|
LL | fn render_HTML() {}
| ^^^^^^^^^^^ help: convert the identifier to snake case: `render_html`
2018-08-08 07:28:26 -05:00
error: trait method `ABC` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:22:8
2018-08-08 07:28:26 -05:00
|
LL | fn ABC();
| ^^^ help: convert the identifier to snake case: `abc`
2018-08-08 07:28:26 -05:00
error: trait method `a_b_C` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:25:8
2018-08-08 07:28:26 -05:00
|
LL | fn a_b_C(&self) {}
| ^^^^^ help: convert the identifier to snake case: `a_b_c`
2018-08-08 07:28:26 -05:00
error: trait method `something__else` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:28:8
2018-08-08 07:28:26 -05:00
|
LL | fn something__else(&mut self);
| ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `something_else`
2018-08-08 07:28:26 -05:00
error: function `Cookie` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:38:4
2018-08-08 07:28:26 -05:00
|
LL | fn Cookie() {}
| ^^^^^^ help: convert the identifier to snake case: `cookie`
2018-08-08 07:28:26 -05:00
error: function `bi_S_Cuit` should have a snake case name
--> $DIR/lint-non-snake-case-functions.rs:41:8
2018-08-08 07:28:26 -05:00
|
LL | pub fn bi_S_Cuit() {}
| ^^^^^^^^^ help: convert the identifier to snake case: `bi_s_cuit`
2018-08-08 07:28:26 -05:00
error: aborting due to 9 previous errors