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