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
Copy file name to clipboardexpand all lines: tests/ui/async-await/async-closures/not-clone-closure.stderr
+7-4
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,17 @@
1
-
error[E0277]: the trait bound `NotClonableUpvar: Clone` is not satisfied in `{async closure@$DIR/not-clone-closure.rs:29:21: 29:34}`
1
+
error[E0277]: the trait bound `NotClonableUpvar: Clone` is not satisfied in `{async closure@$DIR/not-clone-closure.rs:29:21: 31:6}`
2
2
--> $DIR/not-clone-closure.rs:32:15
3
3
|
4
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`
5
+
| ^^^^^ within `{async closure@$DIR/not-clone-closure.rs:29:21: 31:6}`, the trait `Clone` is not implemented for `NotClonableUpvar`, which is required by `{async closure@$DIR/not-clone-closure.rs:29:21: 31:6}: Clone`
6
6
|
7
7
note: required because it's used within this closure
8
8
--> $DIR/not-clone-closure.rs:29:21
9
9
|
10
-
LL | let not_clone = async move || {
11
-
| ^^^^^^^^^^^^^
10
+
LL | let not_clone = async move || {
11
+
| _____________________^
12
+
LL | | println!("{z:?}");
13
+
LL | | };
14
+
| |_____^
12
15
help: consider annotating `NotClonableUpvar` with `#[derive(Clone)]`
0 commit comments