]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch18-patterns-and-matching/listing-18-05/output.txt
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch18-patterns-and-matching / listing-18-05 / output.txt
CommitLineData
74b04a01
XL
1$ cargo run
2 Compiling patterns v0.1.0 (file:///projects/patterns)
3error[E0308]: mismatched types
4 --> src/main.rs:2:9
5 |
62 | let (x, y) = (1, 2, 3);
923072b8
FG
7 | ^^^^^^ --------- this expression has type `({integer}, {integer}, {integer})`
8 | |
9 | expected a tuple with 3 elements, found one with 2 elements
74b04a01
XL
10 |
11 = note: expected tuple `({integer}, {integer}, {integer})`
12 found tuple `(_, _)`
13
74b04a01 14For more information about this error, try `rustc --explain E0308`.
c295e0f8 15error: could not compile `patterns` due to previous error