]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-base-wrong-type.stderr
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / structs / struct-base-wrong-type.stderr
1 error[E0308]: mismatched types
2   --> $DIR/struct-base-wrong-type.rs:7:33
3    |
4 LL | static foo: Foo = Foo { a: 2, ..bar };
5    |                                 ^^^ expected struct `Foo`, found struct `Bar`
6
7 error[E0308]: mismatched types
8   --> $DIR/struct-base-wrong-type.rs:8:35
9    |
10 LL | static foo_i: Foo = Foo { a: 2, ..4 };
11    |                                   ^ expected struct `Foo`, found integer
12
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`
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
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.