Consolidate tests for non_camel_case_types

This commit is contained in:
Brian Anderson 2012-09-18 11:55:56 -07:00
parent 6473cf1757
commit 76c8b83efa
6 changed files with 24 additions and 33 deletions

View File

@ -1,7 +0,0 @@
#[forbid(non_camel_case_types)]
struct foo { //~ ERROR type, variant, or trait must be camel case
bar: int,
}
fn main() {
}

View File

@ -1,7 +0,0 @@
#[forbid(non_camel_case_types)]
enum foo { //~ ERROR type, variant, or trait must be camel case
Bar
}
fn main() {
}

View File

@ -1,7 +0,0 @@
#[forbid(non_camel_case_types)]
struct foo { //~ ERROR type, variant, or trait must be camel case
bar: int
}
fn main() {
}

View File

@ -1,5 +0,0 @@
#[forbid(non_camel_case_types)]
type foo = int; //~ ERROR type, variant, or trait must be camel case
fn main() {
}

View File

@ -0,0 +1,24 @@
#[forbid(non_camel_case_types)];
struct foo { //~ ERROR type, variant, or trait must be camel case
bar: int,
}
enum foo2 { //~ ERROR type, variant, or trait must be camel case
Bar
}
struct foo3 { //~ ERROR type, variant, or trait must be camel case
bar: int
}
type foo4 = int; //~ ERROR type, variant, or trait must be camel case
enum Foo5 {
bar //~ ERROR type, variant, or trait must be camel case
}
trait foo6 { //~ ERROR type, variant, or trait must be camel case
}
fn main() { }

View File

@ -1,7 +0,0 @@
#[forbid(non_camel_case_types)]
enum Foo {
bar //~ ERROR type, variant, or trait must be camel case
}
fn main() {
}