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