class c { //~ ERROR a class must have at least one field
    new() { }
}

fn main() {
    let a = c();
    let x = ~[a];
    let _y = x[0];
}

class c { //~ ERROR a struct must have at least one field
    new() { }
}

fn main() {
    let a = c();
    let x = ~[a];
    let _y = x[0];
}

Fix sub-breakage due to the changed error message.
Fix sub-breakage due to the changed error message.
