summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs/suggest-replacing-field-when-specifying-same-type.stderr
blob: e8503f540c288da0b2848b7a08d6f2c9f40525d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
error[E0026]: variant `Foo::Bar` does not have a field named `aa`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:10:23
   |
LL |         Foo::Bar { a, aa: 1, c } => (),
   |                       ^^
   |                       |
   |                       variant `Foo::Bar` does not have this field
   |                       help: `Foo::Bar` has a field named `b`

error[E0027]: pattern does not mention field `b`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:10:9
   |
LL |         Foo::Bar { a, aa: 1, c } => (),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^ missing field `b`
   |
help: include the missing field in the pattern
   |
LL |         Foo::Bar { a, aa: 1, c, b } => (),
   |                               ~~~~~
help: if you don't care about this missing field, you can explicitly ignore it
   |
LL |         Foo::Bar { a, aa: 1, c, .. } => (),
   |                               ~~~~~~

error[E0026]: variant `Foo::Baz` does not have a field named `bb`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:13:20
   |
LL |         Foo::Baz { bb: 1.0 } => (),
   |                    ^^
   |                    |
   |                    variant `Foo::Baz` does not have this field
   |                    help: `Foo::Baz` has a field named `a`

error[E0027]: pattern does not mention field `a`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:13:9
   |
LL |         Foo::Baz { bb: 1.0 } => (),
   |         ^^^^^^^^^^^^^^^^^^^^ missing field `a`
   |
help: include the missing field in the pattern
   |
LL |         Foo::Baz { bb: 1.0, a } => (),
   |                           ~~~~~
help: if you don't care about this missing field, you can explicitly ignore it
   |
LL |         Foo::Baz { bb: 1.0, .. } => (),
   |                           ~~~~~~

error[E0026]: variant `Foo::Bar` does not have a field named `aa`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:20:23
   |
LL |         Foo::Bar { a, aa: "", c } => (),
   |                       ^^ variant `Foo::Bar` does not have this field

error[E0027]: pattern does not mention field `b`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:20:9
   |
LL |         Foo::Bar { a, aa: "", c } => (),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `b`
   |
help: include the missing field in the pattern
   |
LL |         Foo::Bar { a, aa: "", c, b } => (),
   |                                ~~~~~
help: if you don't care about this missing field, you can explicitly ignore it
   |
LL |         Foo::Bar { a, aa: "", c, .. } => (),
   |                                ~~~~~~

error[E0026]: variant `Foo::Baz` does not have a field named `bb`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:23:20
   |
LL |         Foo::Baz { bb: "" } => (),
   |                    ^^ variant `Foo::Baz` does not have this field

error[E0027]: pattern does not mention field `a`
  --> $DIR/suggest-replacing-field-when-specifying-same-type.rs:23:9
   |
LL |         Foo::Baz { bb: "" } => (),
   |         ^^^^^^^^^^^^^^^^^^^ missing field `a`
   |
help: include the missing field in the pattern
   |
LL |         Foo::Baz { bb: "", a } => (),
   |                          ~~~~~
help: if you don't care about this missing field, you can explicitly ignore it
   |
LL |         Foo::Baz { bb: "", .. } => (),
   |                          ~~~~~~

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0026, E0027.
For more information about an error, try `rustc --explain E0026`.