summaryrefslogtreecommitdiffstats
path: root/tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs
blob: ff867c000716e358d49ad2208ada44c8f13aa905 (plain)
1
2
3
4
5
fn main() {
    let mut x = &0;
    let mut y = &0;
    (x, y) = &(1, 2); //~ ERROR mismatched types
}