]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-base-wrong-type-2.stderr
Continue evaluating after item-type checking
[rust.git] / src / test / ui / structs / struct-base-wrong-type-2.stderr
1 error[E0308]: mismatched types
2   --> $DIR/struct-base-wrong-type-2.rs:11:27
3    |
4 LL |     let f = Foo { a: 2, ..b };
5    |                           ^ expected struct `Foo`, found struct `Bar`
6    |
7    = note: expected type `Foo`
8               found type `Bar`
9
10 error[E0308]: mismatched types
11   --> $DIR/struct-base-wrong-type-2.rs:15:34
12    |
13 LL |     let f__isize = Foo { a: 2, ..4 };
14    |                                  ^ expected struct `Foo`, found integer
15    |
16    = note: expected type `Foo`
17               found type `{integer}`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.