2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `*a` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:6:13
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | let b = *a;
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^ move occurs because `*a` has type `A`, which does not implement the `Copy` trait
|
|
|
|
|
|
2024-03-17 16:25:38 -05:00
|
|
|
note: if `A` implemented `Clone`, you could clone the value
|
|
|
|
--> $DIR/move-errors.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A(String);
|
Mention when type parameter could be `Clone`
```
error[E0382]: use of moved value: `t`
--> $DIR/use_of_moved_value_copy_suggestions.rs:7:9
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| - move occurs because `t` has type `T`, which does not implement the `Copy` trait
...
LL | (t, t)
| - ^ value used here after move
| |
| value moved here
|
help: if `T` implemented `Clone`, you could clone the value
--> $DIR/use_of_moved_value_copy_suggestions.rs:4:16
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| ^ consider constraining this type parameter with `Clone`
...
LL | (t, t)
| - you could clone this value
help: consider restricting type parameter `T`
|
LL | fn duplicate_t<T: Copy>(t: T) -> (T, T) {
| ++++++
```
The `help` is new. On ADTs, we also extend the output with span labels:
```
error[E0507]: cannot move out of static item `FOO`
--> $DIR/issue-17718-static-move.rs:6:14
|
LL | let _a = FOO;
| ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
|
note: if `Foo` implemented `Clone`, you could clone the value
--> $DIR/issue-17718-static-move.rs:1:1
|
LL | struct Foo;
| ^^^^^^^^^^ consider implementing `Clone` for this type
...
LL | let _a = FOO;
| --- you could clone this value
help: consider borrowing here
|
LL | let _a = &FOO;
| +
```
2024-04-18 17:18:19 -05:00
|
|
|
| ^^^^^^^^ consider implementing `Clone` for this type
|
|
|
|
...
|
|
|
|
LL | let b = *a;
|
|
|
|
| -- you could clone this value
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - let b = *a;
|
|
|
|
LL + let b = a;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error[E0508]: cannot move out of type `[A; 1]`, a non-copy array
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:12:13
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | let b = a[0];
|
|
|
|
| ^^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `a[_]` has type `A`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2024-03-17 16:25:38 -05:00
|
|
|
note: if `A` implemented `Clone`, you could clone the value
|
|
|
|
--> $DIR/move-errors.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A(String);
|
Mention when type parameter could be `Clone`
```
error[E0382]: use of moved value: `t`
--> $DIR/use_of_moved_value_copy_suggestions.rs:7:9
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| - move occurs because `t` has type `T`, which does not implement the `Copy` trait
...
LL | (t, t)
| - ^ value used here after move
| |
| value moved here
|
help: if `T` implemented `Clone`, you could clone the value
--> $DIR/use_of_moved_value_copy_suggestions.rs:4:16
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| ^ consider constraining this type parameter with `Clone`
...
LL | (t, t)
| - you could clone this value
help: consider restricting type parameter `T`
|
LL | fn duplicate_t<T: Copy>(t: T) -> (T, T) {
| ++++++
```
The `help` is new. On ADTs, we also extend the output with span labels:
```
error[E0507]: cannot move out of static item `FOO`
--> $DIR/issue-17718-static-move.rs:6:14
|
LL | let _a = FOO;
| ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
|
note: if `Foo` implemented `Clone`, you could clone the value
--> $DIR/issue-17718-static-move.rs:1:1
|
LL | struct Foo;
| ^^^^^^^^^^ consider implementing `Clone` for this type
...
LL | let _a = FOO;
| --- you could clone this value
help: consider borrowing here
|
LL | let _a = &FOO;
| +
```
2024-04-18 17:18:19 -05:00
|
|
|
| ^^^^^^^^ consider implementing `Clone` for this type
|
|
|
|
...
|
|
|
|
LL | let b = a[0];
|
|
|
|
| ---- you could clone this value
|
2022-12-08 11:02:54 -06:00
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | let b = &a[0];
|
|
|
|
| +
|
2018-06-27 16:07:20 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `**r` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:19:13
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | let s = **r;
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^ move occurs because `**r` has type `A`, which does not implement the `Copy` trait
|
|
|
|
|
|
2024-03-17 16:25:38 -05:00
|
|
|
note: if `A` implemented `Clone`, you could clone the value
|
|
|
|
--> $DIR/move-errors.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A(String);
|
Mention when type parameter could be `Clone`
```
error[E0382]: use of moved value: `t`
--> $DIR/use_of_moved_value_copy_suggestions.rs:7:9
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| - move occurs because `t` has type `T`, which does not implement the `Copy` trait
...
LL | (t, t)
| - ^ value used here after move
| |
| value moved here
|
help: if `T` implemented `Clone`, you could clone the value
--> $DIR/use_of_moved_value_copy_suggestions.rs:4:16
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| ^ consider constraining this type parameter with `Clone`
...
LL | (t, t)
| - you could clone this value
help: consider restricting type parameter `T`
|
LL | fn duplicate_t<T: Copy>(t: T) -> (T, T) {
| ++++++
```
The `help` is new. On ADTs, we also extend the output with span labels:
```
error[E0507]: cannot move out of static item `FOO`
--> $DIR/issue-17718-static-move.rs:6:14
|
LL | let _a = FOO;
| ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
|
note: if `Foo` implemented `Clone`, you could clone the value
--> $DIR/issue-17718-static-move.rs:1:1
|
LL | struct Foo;
| ^^^^^^^^^^ consider implementing `Clone` for this type
...
LL | let _a = FOO;
| --- you could clone this value
help: consider borrowing here
|
LL | let _a = &FOO;
| +
```
2024-04-18 17:18:19 -05:00
|
|
|
| ^^^^^^^^ consider implementing `Clone` for this type
|
|
|
|
...
|
|
|
|
LL | let s = **r;
|
|
|
|
| --- you could clone this value
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - let s = **r;
|
|
|
|
LL + let s = *r;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-06-27 16:07:20 -05:00
|
|
|
|
2018-09-30 14:21:31 -05:00
|
|
|
error[E0507]: cannot move out of an `Rc`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:27:13
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | let s = *r;
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^ move occurs because value has type `A`, which does not implement the `Copy` trait
|
|
|
|
|
|
2024-03-17 16:25:38 -05:00
|
|
|
note: if `A` implemented `Clone`, you could clone the value
|
|
|
|
--> $DIR/move-errors.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A(String);
|
Mention when type parameter could be `Clone`
```
error[E0382]: use of moved value: `t`
--> $DIR/use_of_moved_value_copy_suggestions.rs:7:9
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| - move occurs because `t` has type `T`, which does not implement the `Copy` trait
...
LL | (t, t)
| - ^ value used here after move
| |
| value moved here
|
help: if `T` implemented `Clone`, you could clone the value
--> $DIR/use_of_moved_value_copy_suggestions.rs:4:16
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| ^ consider constraining this type parameter with `Clone`
...
LL | (t, t)
| - you could clone this value
help: consider restricting type parameter `T`
|
LL | fn duplicate_t<T: Copy>(t: T) -> (T, T) {
| ++++++
```
The `help` is new. On ADTs, we also extend the output with span labels:
```
error[E0507]: cannot move out of static item `FOO`
--> $DIR/issue-17718-static-move.rs:6:14
|
LL | let _a = FOO;
| ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
|
note: if `Foo` implemented `Clone`, you could clone the value
--> $DIR/issue-17718-static-move.rs:1:1
|
LL | struct Foo;
| ^^^^^^^^^^ consider implementing `Clone` for this type
...
LL | let _a = FOO;
| --- you could clone this value
help: consider borrowing here
|
LL | let _a = &FOO;
| +
```
2024-04-18 17:18:19 -05:00
|
|
|
| ^^^^^^^^ consider implementing `Clone` for this type
|
|
|
|
...
|
|
|
|
LL | let s = *r;
|
|
|
|
| -- you could clone this value
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - let s = *r;
|
|
|
|
LL + let s = r;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error[E0508]: cannot move out of type `[A; 1]`, a non-copy array
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:32:13
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | let a = [A("".to_string())][0];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because value has type `A`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2024-03-17 16:25:38 -05:00
|
|
|
note: if `A` implemented `Clone`, you could clone the value
|
|
|
|
--> $DIR/move-errors.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A(String);
|
Mention when type parameter could be `Clone`
```
error[E0382]: use of moved value: `t`
--> $DIR/use_of_moved_value_copy_suggestions.rs:7:9
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| - move occurs because `t` has type `T`, which does not implement the `Copy` trait
...
LL | (t, t)
| - ^ value used here after move
| |
| value moved here
|
help: if `T` implemented `Clone`, you could clone the value
--> $DIR/use_of_moved_value_copy_suggestions.rs:4:16
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| ^ consider constraining this type parameter with `Clone`
...
LL | (t, t)
| - you could clone this value
help: consider restricting type parameter `T`
|
LL | fn duplicate_t<T: Copy>(t: T) -> (T, T) {
| ++++++
```
The `help` is new. On ADTs, we also extend the output with span labels:
```
error[E0507]: cannot move out of static item `FOO`
--> $DIR/issue-17718-static-move.rs:6:14
|
LL | let _a = FOO;
| ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
|
note: if `Foo` implemented `Clone`, you could clone the value
--> $DIR/issue-17718-static-move.rs:1:1
|
LL | struct Foo;
| ^^^^^^^^^^ consider implementing `Clone` for this type
...
LL | let _a = FOO;
| --- you could clone this value
help: consider borrowing here
|
LL | let _a = &FOO;
| +
```
2024-04-18 17:18:19 -05:00
|
|
|
| ^^^^^^^^ consider implementing `Clone` for this type
|
|
|
|
...
|
|
|
|
LL | let a = [A("".to_string())][0];
|
|
|
|
| ---------------------- you could clone this value
|
2022-12-08 11:02:54 -06:00
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | let a = &[A("".to_string())][0];
|
|
|
|
| +
|
2018-06-27 16:07:20 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `a` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:38:16
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | let A(s) = *a;
|
2022-12-08 11:02:54 -06:00
|
|
|
| - ^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-13 18:45:40 -05:00
|
|
|
| data moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `s` has type `String`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - let A(s) = *a;
|
|
|
|
LL + let A(s) = a;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error[E0509]: cannot move out of type `D`, which implements the `Drop` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:44:19
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | let C(D(s)) = c;
|
|
|
|
| - ^ cannot move out of here
|
|
|
|
| |
|
2018-07-31 10:22:12 -05:00
|
|
|
| data moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `s` has type `String`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | let C(D(ref s)) = c;
|
|
|
|
| +++
|
2018-06-27 16:07:20 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `*a` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:51:9
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | b = *a;
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^ move occurs because `*a` has type `A`, which does not implement the `Copy` trait
|
2024-03-17 16:25:38 -05:00
|
|
|
|
|
|
|
|
note: if `A` implemented `Clone`, you could clone the value
|
|
|
|
--> $DIR/move-errors.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A(String);
|
Mention when type parameter could be `Clone`
```
error[E0382]: use of moved value: `t`
--> $DIR/use_of_moved_value_copy_suggestions.rs:7:9
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| - move occurs because `t` has type `T`, which does not implement the `Copy` trait
...
LL | (t, t)
| - ^ value used here after move
| |
| value moved here
|
help: if `T` implemented `Clone`, you could clone the value
--> $DIR/use_of_moved_value_copy_suggestions.rs:4:16
|
LL | fn duplicate_t<T>(t: T) -> (T, T) {
| ^ consider constraining this type parameter with `Clone`
...
LL | (t, t)
| - you could clone this value
help: consider restricting type parameter `T`
|
LL | fn duplicate_t<T: Copy>(t: T) -> (T, T) {
| ++++++
```
The `help` is new. On ADTs, we also extend the output with span labels:
```
error[E0507]: cannot move out of static item `FOO`
--> $DIR/issue-17718-static-move.rs:6:14
|
LL | let _a = FOO;
| ^^^ move occurs because `FOO` has type `Foo`, which does not implement the `Copy` trait
|
note: if `Foo` implemented `Clone`, you could clone the value
--> $DIR/issue-17718-static-move.rs:1:1
|
LL | struct Foo;
| ^^^^^^^^^^ consider implementing `Clone` for this type
...
LL | let _a = FOO;
| --- you could clone this value
help: consider borrowing here
|
LL | let _a = &FOO;
| +
```
2024-04-18 17:18:19 -05:00
|
|
|
| ^^^^^^^^ consider implementing `Clone` for this type
|
|
|
|
...
|
|
|
|
LL | b = *a;
|
|
|
|
| -- you could clone this value
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error[E0508]: cannot move out of type `[B; 1]`, a non-copy array
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:74:11
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | match x[0] {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^^ cannot move out of here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-06-27 16:07:20 -05:00
|
|
|
LL | B::U(d) => (),
|
2018-08-13 18:45:40 -05:00
|
|
|
| - data moved here
|
2018-06-27 16:07:20 -05:00
|
|
|
LL | B::V(s) => (),
|
2018-08-13 18:45:40 -05:00
|
|
|
| - ...and here
|
|
|
|
|
|
2019-11-25 14:32:57 -06:00
|
|
|
= note: move occurs because these variables have types that don't implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | match &x[0] {
|
|
|
|
| +
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error[E0509]: cannot move out of type `D`, which implements the `Drop` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:83:11
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | match x {
|
|
|
|
| ^ cannot move out of here
|
|
|
|
...
|
|
|
|
LL | B::U(D(s)) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| data moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `s` has type `String`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | B::U(D(ref s)) => (),
|
|
|
|
| +++
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error[E0509]: cannot move out of type `D`, which implements the `Drop` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:92:11
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | match x {
|
|
|
|
| ^ cannot move out of here
|
|
|
|
...
|
|
|
|
LL | (D(s), &t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| data moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `s` has type `String`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | (D(ref s), &t) => (),
|
|
|
|
| +++
|
2018-06-27 16:07:20 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `*x.1` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:92:11
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | match x {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^
|
2018-06-27 16:07:20 -05:00
|
|
|
...
|
|
|
|
LL | (D(s), &t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| data moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `t` has type `String`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | (D(s), &ref t) => (),
|
|
|
|
| +++
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error[E0509]: cannot move out of type `F`, which implements the `Drop` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:102:11
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | match x {
|
|
|
|
| ^ cannot move out of here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-07-31 10:22:12 -05:00
|
|
|
LL | F(s, mut t) => (),
|
2018-08-13 18:45:40 -05:00
|
|
|
| - ----- ...and here
|
2018-07-31 10:22:12 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
2019-11-25 14:32:57 -06:00
|
|
|
= note: move occurs because these variables have types that don't implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | F(ref s, mut t) => (),
|
|
|
|
| +++
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | F(s, ref mut t) => (),
|
|
|
|
| +++
|
2018-06-27 16:07:20 -05:00
|
|
|
|
2023-09-30 10:14:07 -05:00
|
|
|
error[E0507]: cannot move out of `x` as enum variant `Ok` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-errors.rs:110:11
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
|
LL | match *x {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-06-27 16:07:20 -05:00
|
|
|
LL | Ok(s) | Err(s) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| data moved here
|
2020-09-02 02:40:56 -05:00
|
|
|
| move occurs because `s` has type `String`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - match *x {
|
|
|
|
LL + match x {
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-06-27 16:07:20 -05:00
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0507, E0508, E0509.
|
2018-06-27 16:07:20 -05:00
|
|
|
For more information about an error, try `rustc --explain E0507`.
|