about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2017-12-21 13:12:58 +0000
committervarkor <github@varkor.com>2017-12-21 13:12:58 +0000
commitc1aa017645925ef1fd80c0d69b08ebca532e6a38 (patch)
treec40ab93c1369326005fff09ff606f51af5351c3d
parente4c02e551b6c6c94cafc09d4db0b493836673292 (diff)
downloadrust-c1aa017645925ef1fd80c0d69b08ebca532e6a38.tar.gz
rust-c1aa017645925ef1fd80c0d69b08ebca532e6a38.zip
Add tests
-rw-r--r--src/test/compile-fail/lint-non-camel-case-types.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/compile-fail/lint-non-camel-case-types.rs b/src/test/compile-fail/lint-non-camel-case-types.rs
index f6d3d62d0bf..5dcdf3a863f 100644
--- a/src/test/compile-fail/lint-non-camel-case-types.rs
+++ b/src/test/compile-fail/lint-non-camel-case-types.rs
@@ -45,4 +45,12 @@ struct foo7 {
 
 type __ = isize; //~ ERROR type `__` should have a camel case name such as `CamelCase`
 
+struct X86_64;
+
+struct X86__64; //~ ERROR type `X86__64` should have a camel case name such as `X86_64`
+
+struct Abc_123; //~ ERROR type `Abc_123` should have a camel case name such as `Abc123`
+
+struct A1_b2_c3; //~ ERROR type `A1_b2_c3` should have a camel case name such as `A1B2C3`
+
 fn main() { }