summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0023.stderr
blob: 37704fc3233ca7c48438a78e812a93dfba138fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
  --> $DIR/E0023.rs:10:9
   |
LL |         Fruit::Apple(a) => {}, //~ ERROR E0023
   |         ^^^^^^^^^^^^^^^ expected 2 fields, found 1

error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
  --> $DIR/E0023.rs:11:9
   |
LL |         Fruit::Apple(a, b, c) => {}, //~ ERROR E0023
   |         ^^^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 3

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
  --> $DIR/E0023.rs:12:9
   |
LL |         Fruit::Pear(1, 2) => {}, //~ ERROR E0023
   |         ^^^^^^^^^^^^^^^^^ expected 1 field, found 2

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0023`.