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