1
- error: type `ONE_TWO_THREE` should have a camel case name such as `OneTwoThree`
1
+ error: type `ONE_TWO_THREE` should have an upper camel case name such as `OneTwoThree`
2
2
--> $DIR/lint-non-camel-case-types.rs:4:1
3
3
|
4
4
LL | struct ONE_TWO_THREE;
@@ -10,72 +10,72 @@ note: lint level defined here
10
10
LL | #![forbid(non_camel_case_types)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
12
12
13
- error: type `foo` should have a camel case name such as `Foo`
13
+ error: type `foo` should have an upper camel case name such as `Foo`
14
14
--> $DIR/lint-non-camel-case-types.rs:7:1
15
15
|
16
- LL | / struct foo { //~ ERROR type `foo` should have a camel case name such as `Foo`
16
+ LL | / struct foo { //~ ERROR type `foo` should have an upper camel case name such as `Foo`
17
17
LL | | bar: isize,
18
18
LL | | }
19
19
| |_^
20
20
21
- error: type `foo2` should have a camel case name such as `Foo2`
21
+ error: type `foo2` should have an upper camel case name such as `Foo2`
22
22
--> $DIR/lint-non-camel-case-types.rs:11:1
23
23
|
24
- LL | / enum foo2 { //~ ERROR type `foo2` should have a camel case name such as `Foo2`
24
+ LL | / enum foo2 { //~ ERROR type `foo2` should have an upper camel case name such as `Foo2`
25
25
LL | | Bar
26
26
LL | | }
27
27
| |_^
28
28
29
- error: type `foo3` should have a camel case name such as `Foo3`
29
+ error: type `foo3` should have an upper camel case name such as `Foo3`
30
30
--> $DIR/lint-non-camel-case-types.rs:15:1
31
31
|
32
- LL | / struct foo3 { //~ ERROR type `foo3` should have a camel case name such as `Foo3`
32
+ LL | / struct foo3 { //~ ERROR type `foo3` should have an upper camel case name such as `Foo3`
33
33
LL | | bar: isize
34
34
LL | | }
35
35
| |_^
36
36
37
- error: type `foo4` should have a camel case name such as `Foo4`
37
+ error: type `foo4` should have an upper camel case name such as `Foo4`
38
38
--> $DIR/lint-non-camel-case-types.rs:19:1
39
39
|
40
- LL | type foo4 = isize; //~ ERROR type `foo4` should have a camel case name such as `Foo4`
40
+ LL | type foo4 = isize; //~ ERROR type `foo4` should have an upper camel case name such as `Foo4`
41
41
| ^^^^^^^^^^^^^^^^^^
42
42
43
- error: variant `bar` should have a camel case name such as `Bar`
43
+ error: variant `bar` should have an upper camel case name such as `Bar`
44
44
--> $DIR/lint-non-camel-case-types.rs:22:5
45
45
|
46
- LL | bar //~ ERROR variant `bar` should have a camel case name such as `Bar`
46
+ LL | bar //~ ERROR variant `bar` should have an upper camel case name such as `Bar`
47
47
| ^^^
48
48
49
- error: trait `foo6` should have a camel case name such as `Foo6`
49
+ error: trait `foo6` should have an upper camel case name such as `Foo6`
50
50
--> $DIR/lint-non-camel-case-types.rs:25:1
51
51
|
52
- LL | / trait foo6 { //~ ERROR trait `foo6` should have a camel case name such as `Foo6`
52
+ LL | / trait foo6 { //~ ERROR trait `foo6` should have an upper camel case name such as `Foo6`
53
53
LL | | fn dummy(&self) { }
54
54
LL | | }
55
55
| |_^
56
56
57
- error: type parameter `ty` should have a camel case name such as `Ty`
57
+ error: type parameter `ty` should have an upper camel case name such as `Ty`
58
58
--> $DIR/lint-non-camel-case-types.rs:29:6
59
59
|
60
- LL | fn f<ty>(_: ty) {} //~ ERROR type parameter `ty` should have a camel case name such as `Ty`
60
+ LL | fn f<ty>(_: ty) {} //~ ERROR type parameter `ty` should have an upper camel case name such as `Ty`
61
61
| ^^
62
62
63
- error: type `X86__64` should have a camel case name such as `X86_64`
63
+ error: type `X86__64` should have an upper camel case name such as `X86_64`
64
64
--> $DIR/lint-non-camel-case-types.rs:38:1
65
65
|
66
- LL | struct X86__64; //~ ERROR type `X86__64` should have a camel case name such as `X86_64`
66
+ LL | struct X86__64; //~ ERROR type `X86__64` should have an upper camel case name such as `X86_64`
67
67
| ^^^^^^^^^^^^^^^
68
68
69
- error: type `Abc_123` should have a camel case name such as `Abc123`
69
+ error: type `Abc_123` should have an upper camel case name such as `Abc123`
70
70
--> $DIR/lint-non-camel-case-types.rs:40:1
71
71
|
72
- LL | struct Abc_123; //~ ERROR type `Abc_123` should have a camel case name such as `Abc123`
72
+ LL | struct Abc_123; //~ ERROR type `Abc_123` should have an upper camel case name such as `Abc123`
73
73
| ^^^^^^^^^^^^^^^
74
74
75
- error: type `A1_b2_c3` should have a camel case name such as `A1B2C3`
75
+ error: type `A1_b2_c3` should have an upper camel case name such as `A1B2C3`
76
76
--> $DIR/lint-non-camel-case-types.rs:42:1
77
77
|
78
- LL | struct A1_b2_c3; //~ ERROR type `A1_b2_c3` should have a camel case name such as `A1B2C3`
78
+ LL | struct A1_b2_c3; //~ ERROR type `A1_b2_c3` should have an upper camel case name such as `A1B2C3`
79
79
| ^^^^^^^^^^^^^^^^
80
80
81
81
error: aborting due to 11 previous errors
0 commit comments