2015-01-08 05:02:42 -06:00
|
|
|
struct MyStruct { field: usize }
|
2014-11-25 03:19:58 -06:00
|
|
|
const STRUCT: MyStruct = MyStruct { field: 42 };
|
|
|
|
|
|
|
|
fn main() {
|
2015-01-08 04:54:35 -06:00
|
|
|
let a: [isize; STRUCT.nonexistent_field];
|
2016-09-28 04:27:23 -05:00
|
|
|
//~^ no field `nonexistent_field` on type `MyStruct`
|
2014-11-25 03:19:58 -06:00
|
|
|
}
|