]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0023.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0023.stderr
1 error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
2   --> $DIR/E0023.rs:10:9
3    |
4 LL |         Fruit::Apple(a) => {},
5    |         ^^^^^^^^^^^^^^^ expected 2 fields, found 1
6
7 error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
8   --> $DIR/E0023.rs:11:9
9    |
10 LL |         Fruit::Apple(a, b, c) => {},
11    |         ^^^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 3
12
13 error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field
14   --> $DIR/E0023.rs:12:9
15    |
16 LL |         Fruit::Pear(1, 2) => {},
17    |         ^^^^^^^^^^^^^^^^^ expected 1 field, found 2
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0023`.