You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `NotClonableUpvar: Clone` is not satisfied in `{async closure@$DIR/not-clone-closure.rs:29:21: 29:34}`
2
+
--> $DIR/not-clone-closure.rs:32:15
3
+
|
4
+
LL | not_clone.clone();
5
+
| ^^^^^ within `{async closure@$DIR/not-clone-closure.rs:29:21: 29:34}`, the trait `Clone` is not implemented for `NotClonableUpvar`, which is required by `{async closure@$DIR/not-clone-closure.rs:29:21: 29:34}: Clone`
6
+
|
7
+
note: required because it's used within this closure
8
+
--> $DIR/not-clone-closure.rs:29:21
9
+
|
10
+
LL | let not_clone = async move || {
11
+
| ^^^^^^^^^^^^^
12
+
help: consider annotating `NotClonableUpvar` with `#[derive(Clone)]`
13
+
|
14
+
LL + #[derive(Clone)]
15
+
LL | struct NotClonableUpvar;
16
+
|
17
+
18
+
error: aborting due to 1 previous error
19
+
20
+
For more information about this error, try `rustc --explain E0277`.
0 commit comments