Skip to content

Commit 76c8b83

Browse files
committed
Consolidate tests for non_camel_case_types
1 parent 6473cf1 commit 76c8b83

6 files changed

+24
-33
lines changed

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

Lines changed: 0 additions & 7 deletions
This file was deleted.

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

Lines changed: 0 additions & 7 deletions
This file was deleted.

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

Lines changed: 0 additions & 7 deletions
This file was deleted.

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

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#[forbid(non_camel_case_types)];
2+
3+
struct foo { //~ ERROR type, variant, or trait must be camel case
4+
bar: int,
5+
}
6+
7+
enum foo2 { //~ ERROR type, variant, or trait must be camel case
8+
Bar
9+
}
10+
11+
struct foo3 { //~ ERROR type, variant, or trait must be camel case
12+
bar: int
13+
}
14+
15+
type foo4 = int; //~ ERROR type, variant, or trait must be camel case
16+
17+
enum Foo5 {
18+
bar //~ ERROR type, variant, or trait must be camel case
19+
}
20+
21+
trait foo6 { //~ ERROR type, variant, or trait must be camel case
22+
}
23+
24+
fn main() { }

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

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)