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