blob: 87f8c1581a75080aafe92783bd9399a3a5509564 [file] [log] [blame]
struct MyStruct { field: usize }
const STRUCT: MyStruct = MyStruct { field: 42 };
fn main() {
let a: [isize; STRUCT.nonexistent_field];
//~^ ERROR no field `nonexistent_field` on type `MyStruct`
}