]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/lint-non-camel-case-types.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / 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: lint level 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 { //~ ERROR type `foo` should have an upper camel case name
17 | ^^^ help: convert the identifier to upper camel case: `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 { //~ ERROR type `foo2` should have an upper camel case name
23 | ^^^^ help: convert the identifier to upper camel case: `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 { //~ ERROR type `foo3` should have an upper camel case name
29 | ^^^^ help: convert the identifier to upper camel case: `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; //~ ERROR type `foo4` should have an upper camel case name
35 | ^^^^ help: convert the identifier to upper camel case: `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 //~ ERROR variant `bar` should have an upper camel case name
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 { //~ ERROR trait `foo6` should have an upper camel case name
47 | ^^^^ help: convert the identifier to upper camel case: `Foo6`
48
49 error: type parameter `ty` should have an upper camel case name
50 --> $DIR/lint-non-camel-case-types.rs:29:6
51 |
52 LL | fn f<ty>(_: ty) {} //~ ERROR type parameter `ty` should have an upper camel case name
53 | ^^ help: convert the identifier to upper camel case: `Ty`
54
55 error: aborting due to 8 previous errors
56