1 error[E0026]: variant `Foo::Bar` does not have a field named `aa`
2 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:10:23
4 LL | Foo::Bar { a, aa: 1, c } => (),
7 | variant `Foo::Bar` does not have this field
8 | help: `Foo::Bar` has a field named `b`
10 error[E0027]: pattern does not mention field `b`
11 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:10:9
13 LL | Foo::Bar { a, aa: 1, c } => (),
14 | ^^^^^^^^^^^^^^^^^^^^^^^^ missing field `b`
16 help: include the missing field in the pattern
18 LL | Foo::Bar { a, aa: 1, c, b } => (),
20 help: if you don't care about this missing field, you can explicitly ignore it
22 LL | Foo::Bar { a, aa: 1, c, .. } => (),
25 error[E0026]: variant `Foo::Baz` does not have a field named `bb`
26 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:13:20
28 LL | Foo::Baz { bb: 1.0 } => (),
31 | variant `Foo::Baz` does not have this field
32 | help: `Foo::Baz` has a field named `a`
34 error[E0027]: pattern does not mention field `a`
35 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:13:9
37 LL | Foo::Baz { bb: 1.0 } => (),
38 | ^^^^^^^^^^^^^^^^^^^^ missing field `a`
40 help: include the missing field in the pattern
42 LL | Foo::Baz { bb: 1.0, a } => (),
44 help: if you don't care about this missing field, you can explicitly ignore it
46 LL | Foo::Baz { bb: 1.0, .. } => (),
49 error[E0026]: variant `Foo::Bar` does not have a field named `aa`
50 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:20:23
52 LL | Foo::Bar { a, aa: "", c } => (),
53 | ^^ variant `Foo::Bar` does not have this field
55 error[E0027]: pattern does not mention field `b`
56 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:20:9
58 LL | Foo::Bar { a, aa: "", c } => (),
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `b`
61 help: include the missing field in the pattern
63 LL | Foo::Bar { a, aa: "", c, b } => (),
65 help: if you don't care about this missing field, you can explicitly ignore it
67 LL | Foo::Bar { a, aa: "", c, .. } => (),
70 error[E0026]: variant `Foo::Baz` does not have a field named `bb`
71 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:23:20
73 LL | Foo::Baz { bb: "" } => (),
74 | ^^ variant `Foo::Baz` does not have this field
76 error[E0027]: pattern does not mention field `a`
77 --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:23:9
79 LL | Foo::Baz { bb: "" } => (),
80 | ^^^^^^^^^^^^^^^^^^^ missing field `a`
82 help: include the missing field in the pattern
84 LL | Foo::Baz { bb: "", a } => (),
86 help: if you don't care about this missing field, you can explicitly ignore it
88 LL | Foo::Baz { bb: "", .. } => (),
91 error: aborting due to 8 previous errors
93 Some errors have detailed explanations: E0026, E0027.
94 For more information about an error, try `rustc --explain E0026`.