]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-19244-2.rs
Rollup merge of #104347 - notriddle:notriddle/import-macro-from-self-fixup, r=TaKO8Ki
[rust.git] / tests / ui / issues / issue-19244-2.rs
1 struct MyStruct { field: usize }
2 const STRUCT: MyStruct = MyStruct { field: 42 };
3
4 fn main() {
5     let a: [isize; STRUCT.nonexistent_field];
6     //~^ no field `nonexistent_field` on type `MyStruct`
7 }