1 // Check that `base` in `Fru { field: expr, ..base }` must have right type.
3 struct Foo { a: isize, b: isize }
4 struct Bar { x: isize }
6 static bar: Bar = Bar { x: 5 };
7 static foo: Foo = Foo { a: 2, ..bar }; //~ ERROR mismatched types
8 static foo_i: Foo = Foo { a: 2, ..4 }; //~ ERROR mismatched types
12 let f = Foo { a: 2, ..b }; //~ ERROR mismatched types
13 let f__isize = Foo { a: 2, ..4 }; //~ ERROR mismatched types