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