]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-19244-2.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[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 }