fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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