]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-non-camel-case-types.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / lint-non-camel-case-types.stderr
1 error: type `ONE_TWO_THREE` should have an upper camel case name
2   --> $DIR/lint-non-camel-case-types.rs:4:8
3    |
4 LL | struct ONE_TWO_THREE;
5    |        ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OneTwoThree`
6    |
7 note: the lint level is defined here
8   --> $DIR/lint-non-camel-case-types.rs:1:11
9    |
10 LL | #![forbid(non_camel_case_types)]
11    |           ^^^^^^^^^^^^^^^^^^^^
12
13 error: type `foo` should have an upper camel case name
14   --> $DIR/lint-non-camel-case-types.rs:7:8
15    |
16 LL | struct foo {
17    |        ^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo`
18
19 error: type `foo2` should have an upper camel case name
20   --> $DIR/lint-non-camel-case-types.rs:11:6
21    |
22 LL | enum foo2 {
23    |      ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo2`
24
25 error: type `foo3` should have an upper camel case name
26   --> $DIR/lint-non-camel-case-types.rs:15:8
27    |
28 LL | struct foo3 {
29    |        ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo3`
30
31 error: type `foo4` should have an upper camel case name
32   --> $DIR/lint-non-camel-case-types.rs:19:6
33    |
34 LL | type foo4 = isize;
35    |      ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo4`
36
37 error: variant `bar` should have an upper camel case name
38   --> $DIR/lint-non-camel-case-types.rs:22:5
39    |
40 LL |     bar
41    |     ^^^ help: convert the identifier to upper camel case: `Bar`
42
43 error: trait `foo6` should have an upper camel case name
44   --> $DIR/lint-non-camel-case-types.rs:25:7
45    |
46 LL | trait foo6 {
47    |       ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo6`
48
49 error: associated type `foo7` should have an upper camel case name
50   --> $DIR/lint-non-camel-case-types.rs:26:10
51    |
52 LL |     type foo7;
53    |          ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Foo7`
54
55 error: type parameter `ty` should have an upper camel case name
56   --> $DIR/lint-non-camel-case-types.rs:30:6
57    |
58 LL | fn f<ty>(_: ty) {}
59    |      ^^ help: convert the identifier to upper camel case: `Ty`
60
61 error: aborting due to 9 previous errors
62