fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0382]: use of moved value: `m` 2 --> $DIR/issue-53114-borrow-checks.rs:22:11 3 | 4LL | let m = M; 5 | - move occurs because `m` has type `M`, which does not implement the `Copy` trait 6LL | drop(m); 7 | - value moved here 8LL | match m { _ => { } } // #53114: should eventually be accepted too 9 | ^ value used here after move 10 11error[E0382]: use of moved value: `mm` 12 --> $DIR/issue-53114-borrow-checks.rs:27:11 13 | 14LL | match mm { (_x, _) => { } } 15 | -- value moved here 16LL | match mm { (_, _y) => { } } 17 | ^^ value used here after partial move 18 | 19 = note: move occurs because `mm.0` has type `M`, which does not implement the `Copy` trait 20 21error[E0382]: use of moved value: `mm` 22 --> $DIR/issue-53114-borrow-checks.rs:29:11 23 | 24LL | match mm { (_, _y) => { } } 25 | -- value moved here 26LL | 27LL | match mm { (_, _) => { } } 28 | ^^ value used here after partial move 29 | 30 = note: move occurs because `mm.1` has type `M`, which does not implement the `Copy` trait 31 32error[E0382]: use of moved value: `m` 33 --> $DIR/issue-53114-borrow-checks.rs:36:16 34 | 35LL | let m = M; 36 | - move occurs because `m` has type `M`, which does not implement the `Copy` trait 37LL | drop(m); 38 | - value moved here 39LL | if let _ = m { } // #53114: should eventually be accepted too 40 | ^ value used here after move 41 42error[E0382]: use of moved value: `mm` 43 --> $DIR/issue-53114-borrow-checks.rs:41:22 44 | 45LL | if let (_x, _) = mm { } 46 | -- value moved here 47LL | if let (_, _y) = mm { } 48 | ^^ value used here after partial move 49 | 50 = note: move occurs because `mm.0` has type `M`, which does not implement the `Copy` trait 51 52error[E0382]: use of moved value: `mm` 53 --> $DIR/issue-53114-borrow-checks.rs:43:21 54 | 55LL | if let (_, _y) = mm { } 56 | -- value moved here 57LL | 58LL | if let (_, _) = mm { } 59 | ^^ value used here after partial move 60 | 61 = note: move occurs because `mm.1` has type `M`, which does not implement the `Copy` trait 62 63error: aborting due to 6 previous errors 64 65For more information about this error, try `rustc --explain E0382`.