]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-fields-shorthand-unresolved.rs
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / structs / struct-fields-shorthand-unresolved.rs
1 struct Foo {
2     x: i32,
3     y: i32
4 }
5
6 fn main() {
7     let x = 0;
8     let foo = Foo {
9         x,
10         y //~ ERROR cannot find value `y` in this scope
11     };
12 }