]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-tuple-overfield.stderr
Rollup merge of #56682 - alexcrichton:update-stdsimd, r=nikomatsakis
[rust.git] / src / test / ui / pattern / pat-tuple-overfield.stderr
1 error[E0308]: mismatched types
2   --> $DIR/pat-tuple-overfield.rs:15:9
3    |
4 LL |         (1, 2, 3, 4) => {} //~ ERROR mismatched types
5    |         ^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
6    |
7    = note: expected type `({integer}, {integer}, {integer})`
8               found type `(_, _, _, _)`
9
10 error[E0308]: mismatched types
11   --> $DIR/pat-tuple-overfield.rs:16:9
12    |
13 LL |         (1, 2, .., 3, 4) => {} //~ ERROR mismatched types
14    |         ^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
15    |
16    = note: expected type `({integer}, {integer}, {integer})`
17               found type `(_, _, _, _)`
18
19 error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 3 fields
20   --> $DIR/pat-tuple-overfield.rs:20:9
21    |
22 LL |         S(1, 2, 3, 4) => {}
23    |         ^^^^^^^^^^^^^ expected 3 fields, found 4
24
25 error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 3 fields
26   --> $DIR/pat-tuple-overfield.rs:22:9
27    |
28 LL |         S(1, 2, .., 3, 4) => {}
29    |         ^^^^^^^^^^^^^^^^^ expected 3 fields, found 4
30
31 error: aborting due to 4 previous errors
32
33 Some errors occurred: E0023, E0308.
34 For more information about an error, try `rustc --explain E0023`.