]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-group-nonstandard-style.stderr
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / ui / lint / lint-group-nonstandard-style.stderr
1 warning: type `snake_case` should have an upper camel case name
2   --> $DIR/lint-group-nonstandard-style.rs:22:16
3    |
4 LL |         struct snake_case;
5    |                ^^^^^^^^^^ help: convert the identifier to upper camel case: `SnakeCase`
6    |
7 note: the lint level is defined here
8   --> $DIR/lint-group-nonstandard-style.rs:18:17
9    |
10 LL |         #![warn(nonstandard_style)]
11    |                 ^^^^^^^^^^^^^^^^^
12    = note: `#[warn(non_camel_case_types)]` implied by `#[warn(nonstandard_style)]`
13
14 error: function `CamelCase` should have a snake case name
15   --> $DIR/lint-group-nonstandard-style.rs:4:4
16    |
17 LL | fn CamelCase() {}
18    |    ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
19    |
20 note: the lint level is defined here
21   --> $DIR/lint-group-nonstandard-style.rs:1:9
22    |
23 LL | #![deny(nonstandard_style)]
24    |         ^^^^^^^^^^^^^^^^^
25    = note: `#[deny(non_snake_case)]` implied by `#[deny(nonstandard_style)]`
26
27 error: function `CamelCase` should have a snake case name
28   --> $DIR/lint-group-nonstandard-style.rs:12:12
29    |
30 LL |         fn CamelCase() {}
31    |            ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
32    |
33 note: the lint level is defined here
34   --> $DIR/lint-group-nonstandard-style.rs:10:14
35    |
36 LL |     #[forbid(nonstandard_style)]
37    |              ^^^^^^^^^^^^^^^^^
38    = note: `#[forbid(non_snake_case)]` implied by `#[forbid(nonstandard_style)]`
39
40 error: static variable `bad` should have an upper case name
41   --> $DIR/lint-group-nonstandard-style.rs:14:16
42    |
43 LL |         static bad: isize = 1;
44    |                ^^^ help: convert the identifier to upper case: `BAD`
45    |
46    = note: `#[forbid(non_upper_case_globals)]` implied by `#[forbid(nonstandard_style)]`
47
48 warning: function `CamelCase` should have a snake case name
49   --> $DIR/lint-group-nonstandard-style.rs:20:12
50    |
51 LL |         fn CamelCase() {}
52    |            ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
53    |
54    = note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
55
56 error: aborting due to 3 previous errors; 2 warnings emitted
57