11error[E0382]: use of moved value: `x`
2- --> $DIR/move-guard-if-let-chain.rs:14 :23
2+ --> $DIR/move-guard-if-let-chain.rs:15 :23
33 |
44LL | let x: Box<_> = Box::new(1);
55 | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
@@ -15,7 +15,7 @@ LL | (1, 2) if let ref y = x && c => (),
1515 | +++
1616
1717error[E0382]: use of moved value: `x`
18- --> $DIR/move-guard-if-let-chain.rs:38 :23
18+ --> $DIR/move-guard-if-let-chain.rs:39 :23
1919 |
2020LL | let x: Box<_> = Box::new(1);
2121 | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
@@ -31,7 +31,7 @@ LL | (1, _) if let ref y = x && c => (),
3131 | +++
3232
3333error[E0382]: use of moved value: `x`
34- --> $DIR/move-guard-if-let-chain.rs:61 :32
34+ --> $DIR/move-guard-if-let-chain.rs:62 :32
3535 |
3636LL | let x: Box<_> = Box::new(1);
3737 | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
@@ -45,7 +45,7 @@ LL | (1, _) | (_, 2) if let ref y = x && c => (),
4545 | +++
4646
4747error[E0382]: use of moved value: `x`
48- --> $DIR/move-guard-if-let-chain.rs:84 :16
48+ --> $DIR/move-guard-if-let-chain.rs:85 :16
4949 |
5050LL | let x: Box<_> = Box::new(1);
5151 | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
@@ -61,7 +61,7 @@ LL | (1, 2) if let ref y = x && c => false,
6161 | +++
6262
6363error[E0382]: use of moved value: `x`
64- --> $DIR/move-guard-if-let-chain.rs:105 :41
64+ --> $DIR/move-guard-if-let-chain.rs:106 :41
6565 |
6666LL | let x: Box<_> = Box::new(1);
6767 | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
0 commit comments