rust/src/test/ui/lint/lint-group-nonstandard-style.stderr

68 lines
2.3 KiB
Plaintext
Raw Normal View History

warning: type `snake_case` should have a camel case name such as `SnakeCase`
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:22:9
|
LL | struct snake_case; //~ WARN should have a camel
| ^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:18:17
|
LL | #![warn(nonstandard_style)]
| ^^^^^^^^^^^^^^^^^
= note: #[warn(non_camel_case_types)] implied by #[warn(nonstandard_style)]
error: function `CamelCase` should have a snake case name such as `camel_case`
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:4:1
|
2018-02-24 17:59:34 -06:00
LL | fn CamelCase() {} //~ ERROR should have a snake
| ^^^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:1:9
|
2018-02-24 17:59:34 -06:00
LL | #![deny(nonstandard_style)]
2018-02-20 15:38:46 -06:00
| ^^^^^^^^^^^^^^^^^
= note: #[deny(non_snake_case)] implied by #[deny(nonstandard_style)]
error: function `CamelCase` should have a snake case name such as `camel_case`
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:12:9
|
2018-02-24 17:59:34 -06:00
LL | fn CamelCase() {} //~ ERROR should have a snake
| ^^^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:10:14
|
2018-02-24 17:59:34 -06:00
LL | #[forbid(nonstandard_style)]
2018-02-20 15:38:46 -06:00
| ^^^^^^^^^^^^^^^^^
= note: #[forbid(non_snake_case)] implied by #[forbid(nonstandard_style)]
error: static variable `bad` should have an upper case name such as `BAD`
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:14:9
|
2018-02-24 17:59:34 -06:00
LL | static bad: isize = 1; //~ ERROR should have an upper
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:10:14
|
2018-02-24 17:59:34 -06:00
LL | #[forbid(nonstandard_style)]
2018-02-20 15:38:46 -06:00
| ^^^^^^^^^^^^^^^^^
= note: #[forbid(non_upper_case_globals)] implied by #[forbid(nonstandard_style)]
warning: function `CamelCase` should have a snake case name such as `camel_case`
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:20:9
|
2018-02-24 17:59:34 -06:00
LL | fn CamelCase() {} //~ WARN should have a snake
| ^^^^^^^^^^^^^^^^^
|
note: lint level defined here
2018-12-29 01:52:25 -06:00
--> $DIR/lint-group-nonstandard-style.rs:18:17
|
2018-02-24 17:59:34 -06:00
LL | #![warn(nonstandard_style)]
2018-02-20 15:38:46 -06:00
| ^^^^^^^^^^^^^^^^^
= note: #[warn(non_snake_case)] implied by #[warn(nonstandard_style)]
error: aborting due to 3 previous errors