]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/suggest-replacing-field-when-specifying-same-type.stderr
internally change regions to be covariant
[rust.git] / tests / ui / structs / suggest-replacing-field-when-specifying-same-type.stderr
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
3    |
4 LL |         Foo::Bar { a, aa: 1, c } => (),
5    |                       ^^
6    |                       |
7    |                       variant `Foo::Bar` does not have this field
8    |                       help: `Foo::Bar` has a field named `b`
9
10 error[E0027]: pattern does not mention field `b`
11   --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:10:9
12    |
13 LL |         Foo::Bar { a, aa: 1, c } => (),
14    |         ^^^^^^^^^^^^^^^^^^^^^^^^ missing field `b`
15    |
16 help: include the missing field in the pattern
17    |
18 LL |         Foo::Bar { a, aa: 1, c, b } => (),
19    |                               ~~~~~
20 help: if you don't care about this missing field, you can explicitly ignore it
21    |
22 LL |         Foo::Bar { a, aa: 1, c, .. } => (),
23    |                               ~~~~~~
24
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
27    |
28 LL |         Foo::Baz { bb: 1.0 } => (),
29    |                    ^^
30    |                    |
31    |                    variant `Foo::Baz` does not have this field
32    |                    help: `Foo::Baz` has a field named `a`
33
34 error[E0027]: pattern does not mention field `a`
35   --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:13:9
36    |
37 LL |         Foo::Baz { bb: 1.0 } => (),
38    |         ^^^^^^^^^^^^^^^^^^^^ missing field `a`
39    |
40 help: include the missing field in the pattern
41    |
42 LL |         Foo::Baz { bb: 1.0, a } => (),
43    |                           ~~~~~
44 help: if you don't care about this missing field, you can explicitly ignore it
45    |
46 LL |         Foo::Baz { bb: 1.0, .. } => (),
47    |                           ~~~~~~
48
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
51    |
52 LL |         Foo::Bar { a, aa: "", c } => (),
53    |                       ^^ variant `Foo::Bar` does not have this field
54
55 error[E0027]: pattern does not mention field `b`
56   --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:20:9
57    |
58 LL |         Foo::Bar { a, aa: "", c } => (),
59    |         ^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `b`
60    |
61 help: include the missing field in the pattern
62    |
63 LL |         Foo::Bar { a, aa: "", c, b } => (),
64    |                                ~~~~~
65 help: if you don't care about this missing field, you can explicitly ignore it
66    |
67 LL |         Foo::Bar { a, aa: "", c, .. } => (),
68    |                                ~~~~~~
69
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
72    |
73 LL |         Foo::Baz { bb: "" } => (),
74    |                    ^^ variant `Foo::Baz` does not have this field
75
76 error[E0027]: pattern does not mention field `a`
77   --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:23:9
78    |
79 LL |         Foo::Baz { bb: "" } => (),
80    |         ^^^^^^^^^^^^^^^^^^^ missing field `a`
81    |
82 help: include the missing field in the pattern
83    |
84 LL |         Foo::Baz { bb: "", a } => (),
85    |                          ~~~~~
86 help: if you don't care about this missing field, you can explicitly ignore it
87    |
88 LL |         Foo::Baz { bb: "", .. } => (),
89    |                          ~~~~~~
90
91 error: aborting due to 8 previous errors
92
93 Some errors have detailed explanations: E0026, E0027.
94 For more information about an error, try `rustc --explain E0026`.