blob: 1bb6d8e15e14d44709f7b6d577e957ef843b5f2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ run-rustfix
#![allow(unused_variables)]
fn main() {
struct U;
// A tuple is a "non-reference pattern".
// A `mut` binding pattern resets the binding mode to by-value.
let mut p = (U, U);
let (a, mut b) = &mut p;
//~^ ERROR cannot move out of a mutable reference
}
|