2019-11-11 11:39:52 +01:00
|
|
|
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
2019-12-15 05:06:54 +01:00
|
|
|
--> $DIR/default-binding-modes-both-sides-independent.rs:27:17
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let ref a @ b = NotCopy;
|
|
|
|
|
| --------^
|
|
|
|
|
| | |
|
|
|
|
|
| | by-move pattern here
|
2019-12-14 18:20:13 +01:00
|
|
|
| by-ref pattern here
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
2019-12-15 05:06:54 +01:00
|
|
|
--> $DIR/default-binding-modes-both-sides-independent.rs:28:21
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | let ref mut a @ b = NotCopy;
|
|
|
|
|
| ------------^
|
|
|
|
|
| | |
|
|
|
|
|
| | by-move pattern here
|
2019-12-14 18:20:13 +01:00
|
|
|
| by-ref pattern here
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
2019-12-15 05:06:54 +01:00
|
|
|
--> $DIR/default-binding-modes-both-sides-independent.rs:30:20
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | Ok(ref a @ b) | Err(ref a @ b) => {}
|
2019-12-14 18:20:13 +01:00
|
|
|
| --------^ --------^
|
|
|
|
|
| | | | |
|
|
|
|
|
| | | | by-move pattern here
|
|
|
|
|
| | | by-ref pattern here
|
|
|
|
|
| | by-move pattern here
|
|
|
|
|
| by-ref pattern here
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
2019-12-15 05:06:54 +01:00
|
|
|
--> $DIR/default-binding-modes-both-sides-independent.rs:34:17
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
|
LL | ref a @ b => {}
|
|
|
|
|
| --------^
|
|
|
|
|
| | |
|
|
|
|
|
| | by-move pattern here
|
2019-12-14 18:20:13 +01:00
|
|
|
| by-ref pattern here
|
2019-11-11 11:39:52 +01:00
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0009`.
|