mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
580 B
16 lines
580 B
$ cargo run
|
|
Compiling patterns v0.1.0 (file:///projects/patterns)
|
|
error[E0308]: mismatched types
|
|
--> src/main.rs:2:9
|
|
|
|
|
2 | let (x, y) = (1, 2, 3);
|
|
| ^^^^^^ --------- this expression has type `({integer}, {integer}, {integer})`
|
|
| |
|
|
| expected a tuple with 3 elements, found one with 2 elements
|
|
|
|
|
= note: expected tuple `({integer}, {integer}, {integer})`
|
|
found tuple `(_, _)`
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|
|
error: could not compile `patterns` (bin "patterns") due to 1 previous error
|