rust/tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
103 B
Rust
Raw Normal View History

fn main() {
let mut x = &0;
let mut y = &0;
(x, y) = &(1, 2); //~ ERROR mismatched types
}