|
| 1 | +error: function `CamelCase` should have a snake case name such as `camel_case` |
| 2 | + --> $DIR/lint-group-style.rs:14:1 |
| 3 | + | |
| 4 | +14 | fn CamelCase() {} |
| 5 | + | ^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: #[deny(bad_style)] implies #[deny(non_snake_case)] |
| 8 | +note: lint level defined here |
| 9 | + --> $DIR/lint-group-style.rs:11:9 |
| 10 | + | |
| 11 | +11 | #![deny(bad_style)] |
| 12 | + | ^^^^^^^^^ |
| 13 | + |
| 14 | +error: function `CamelCase` should have a snake case name such as `camel_case` |
| 15 | + --> $DIR/lint-group-style.rs:22:9 |
| 16 | + | |
| 17 | +22 | fn CamelCase() {} |
| 18 | + | ^^^^^^^^^^^^^^^^^ |
| 19 | + | |
| 20 | + = note: #[forbid(bad_style)] implies #[forbid(non_snake_case)] |
| 21 | +note: lint level defined here |
| 22 | + --> $DIR/lint-group-style.rs:20:14 |
| 23 | + | |
| 24 | +20 | #[forbid(bad_style)] |
| 25 | + | ^^^^^^^^^ |
| 26 | + |
| 27 | +error: static variable `bad` should have an upper case name such as `BAD` |
| 28 | + --> $DIR/lint-group-style.rs:24:9 |
| 29 | + | |
| 30 | +24 | static bad: isize = 1; |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 32 | + | |
| 33 | + = note: #[forbid(bad_style)] implies #[forbid(non_upper_case_globals)] |
| 34 | +note: lint level defined here |
| 35 | + --> $DIR/lint-group-style.rs:20:14 |
| 36 | + | |
| 37 | +20 | #[forbid(bad_style)] |
| 38 | + | ^^^^^^^^^ |
| 39 | + |
| 40 | +warning: function `CamelCase` should have a snake case name such as `camel_case` |
| 41 | + --> $DIR/lint-group-style.rs:30:9 |
| 42 | + | |
| 43 | +30 | fn CamelCase() {} |
| 44 | + | ^^^^^^^^^^^^^^^^^ |
| 45 | + | |
| 46 | + = note: #[warn(bad_style)] implies #[warn(non_snake_case)] |
| 47 | +note: lint level defined here |
| 48 | + --> $DIR/lint-group-style.rs:28:17 |
| 49 | + | |
| 50 | +28 | #![warn(bad_style)] |
| 51 | + | ^^^^^^^^^ |
| 52 | + |
| 53 | +warning: type `snake_case` should have a camel case name such as `SnakeCase` |
| 54 | + --> $DIR/lint-group-style.rs:32:9 |
| 55 | + | |
| 56 | +32 | struct snake_case; |
| 57 | + | ^^^^^^^^^^^^^^^^^^ |
| 58 | + | |
| 59 | + = note: #[warn(bad_style)] implies #[warn(non_camel_case_types)] |
| 60 | +note: lint level defined here |
| 61 | + --> $DIR/lint-group-style.rs:28:17 |
| 62 | + | |
| 63 | +28 | #![warn(bad_style)] |
| 64 | + | ^^^^^^^^^ |
| 65 | + |
| 66 | +error: aborting due to 3 previous errors |
| 67 | + |
0 commit comments