]> git.proxmox.com Git - rustc.git/blame - src/test/ui/structs/struct-base-wrong-type.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / structs / struct-base-wrong-type.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
48663c56 2 --> $DIR/struct-base-wrong-type.rs:7:33
b7449926 3 |
532ac7d7 4LL | static foo: Foo = Foo { a: 2, ..bar };
b7449926 5 | ^^^ expected struct `Foo`, found struct `Bar`
b7449926
XL
6
7error[E0308]: mismatched types
48663c56 8 --> $DIR/struct-base-wrong-type.rs:8:35
b7449926 9 |
532ac7d7 10LL | static foo_i: Foo = Foo { a: 2, ..4 };
0731742a 11 | ^ expected struct `Foo`, found integer
b7449926 12
48663c56
XL
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`
48663c56
XL
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
48663c56
XL
24
25error: aborting due to 4 previous errors
b7449926
XL
26
27For more information about this error, try `rustc --explain E0308`.