]> git.lizzy.rs Git - rust.git/blob - src/test/ui/destructuring-assignment/default-match-bindings-forbidden.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / destructuring-assignment / default-match-bindings-forbidden.stderr
1 error[E0308]: mismatched types
2   --> $DIR/default-match-bindings-forbidden.rs:4:5
3    |
4 LL |     (x, y) = &(1, 2);
5    |     ^^^^^^   ------- this expression has type `&({integer}, {integer})`
6    |     |
7    |     expected reference, found tuple
8    |
9    = note: expected reference `&({integer}, {integer})`
10                   found tuple `(_, _)`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.