2020-11-04 10:32:52 -06:00
|
|
|
error[E0308]: mismatched types
|
2021-11-03 01:50:57 -05:00
|
|
|
--> $DIR/default-match-bindings-forbidden.rs:4:5
|
2020-11-04 10:32:52 -06:00
|
|
|
|
|
|
|
|
LL | (x, y) = &(1, 2);
|
2021-12-15 17:16:21 -06:00
|
|
|
| ^^^^^^ ------- this expression has type `&({integer}, {integer})`
|
|
|
|
| |
|
2023-01-02 20:00:33 -06:00
|
|
|
| expected `&({integer}, {integer})`, found `(_, _)`
|
2020-11-04 10:32:52 -06:00
|
|
|
|
|
2022-04-17 14:00:32 -05:00
|
|
|
= note: expected reference `&({integer}, {integer})`
|
|
|
|
found tuple `(_, _)`
|
2020-11-04 10:32:52 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|