LL | let hello = hello.clone();
| ^^^^^ within `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`, the trait `Clone` is not implemented for `S`
|
- = note: required because it appears within the type `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`
+note: required because it's used within this closure
+ --> $DIR/not-clone-closure.rs:7:17
+ |
+LL | let hello = move || {
+ | _________________^
+LL | | println!("Hello {}", a.0);
+LL | | };
+ | |_____^
help: consider annotating `S` with `#[derive(Clone)]`
|
LL | #[derive(Clone)]