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