1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![forbid(non_camel_case_types)]
15 //~^ ERROR type `ONE_TWO_THREE` should have a camel case name such as `OneTwoThree`
17 struct foo { //~ ERROR type `foo` should have a camel case name such as `Foo`
21 enum foo2 { //~ ERROR type `foo2` should have a camel case name such as `Foo2`
25 struct foo3 { //~ ERROR type `foo3` should have a camel case name such as `Foo3`
29 type foo4 = isize; //~ ERROR type `foo4` should have a camel case name such as `Foo4`
32 bar //~ ERROR variant `bar` should have a camel case name such as `Bar`
35 trait foo6 { //~ ERROR trait `foo6` should have a camel case name such as `Foo6`
39 fn f<ty>(_: ty) {} //~ ERROR type parameter `ty` should have a camel case name such as `Ty`
48 struct X86__64; //~ ERROR type `X86__64` should have a camel case name such as `X86_64`
50 struct Abc_123; //~ ERROR type `Abc_123` should have a camel case name such as `Abc123`
52 struct A1_b2_c3; //~ ERROR type `A1_b2_c3` should have a camel case name such as `A1B2C3`