1 error[E0308]: mismatched types
2 --> $DIR/struct-base-wrong-type.rs:7:33
4 LL | static foo: Foo = Foo { a: 2, ..bar };
5 | ^^^ expected struct `Foo`, found struct `Bar`
7 error[E0308]: mismatched types
8 --> $DIR/struct-base-wrong-type.rs:8:35
10 LL | static foo_i: Foo = Foo { a: 2, ..4 };
11 | ^ expected struct `Foo`, found integer
13 error[E0308]: mismatched types
14 --> $DIR/struct-base-wrong-type.rs:12:27
16 LL | let f = Foo { a: 2, ..b };
17 | ^ expected struct `Foo`, found struct `Bar`
19 error[E0308]: mismatched types
20 --> $DIR/struct-base-wrong-type.rs:13:34
22 LL | let f__isize = Foo { a: 2, ..4 };
23 | ^ expected struct `Foo`, found integer
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0308`.