Skip to content

Commit c1aa017

Browse files
committed
Add tests
1 parent e4c02e5 commit c1aa017

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/compile-fail/lint-non-camel-case-types.rs

+8
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,12 @@ struct foo7 {
4545

4646
type __ = isize; //~ ERROR type `__` should have a camel case name such as `CamelCase`
4747

48+
struct X86_64;
49+
50+
struct X86__64; //~ ERROR type `X86__64` should have a camel case name such as `X86_64`
51+
52+
struct Abc_123; //~ ERROR type `Abc_123` should have a camel case name such as `Abc123`
53+
54+
struct A1_b2_c3; //~ ERROR type `A1_b2_c3` should have a camel case name such as `A1B2C3`
55+
4856
fn main() { }

0 commit comments

Comments
 (0)