warn(non_camel_case_types) by default

This commit is contained in:
Brian Anderson 2012-09-17 18:52:50 -07:00
parent 008bb6fe06
commit f563c0b525
4 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#[forbid(heap_memory)];
type foo = { //~ ERROR type uses managed
type Foo = { //~ ERROR type uses managed
x: @int
};

View file

@ -1,11 +1,11 @@
#[forbid(managed_heap_memory)];
type foo = { //~ ERROR type uses managed
type Foo = { //~ ERROR type uses managed
x: @int
};
fn main() {
let _x : foo = {x : @10};
let _x : Foo = {x : @10};
//~^ ERROR type uses managed
//~^^ ERROR type uses managed
}

View file

@ -1,11 +1,11 @@
#[forbid(owned_heap_memory)];
type foo = { //~ ERROR type uses owned
type Foo = { //~ ERROR type uses owned
x: ~int
};
fn main() {
let _x : foo = {x : ~10};
let _x : Foo = {x : ~10};
//~^ ERROR type uses owned
//~^^ ERROR type uses owned
}