]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/lint-group-nonstandard-style.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / 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: lint level 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: lint level 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: lint level 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: lint level defined here
47 --> $DIR/lint-group-nonstandard-style.rs:10:14
48 |
49 LL | #[forbid(nonstandard_style)]
50 | ^^^^^^^^^^^^^^^^^
51 = note: `#[forbid(non_upper_case_globals)]` implied by `#[forbid(nonstandard_style)]`
52
53 warning: function `CamelCase` should have a snake case name
54 --> $DIR/lint-group-nonstandard-style.rs:20:12
55 |
56 LL | fn CamelCase() {}
57 | ^^^^^^^^^ help: convert the identifier to snake case: `camel_case`
58 |
59 note: lint level defined here
60 --> $DIR/lint-group-nonstandard-style.rs:18:17
61 |
62 LL | #![warn(nonstandard_style)]
63 | ^^^^^^^^^^^^^^^^^
64 = note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
65
66 error: aborting due to 3 previous errors
67