fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `S: Clone` is not satisfied in `{closure@$DIR/not-clone-closure.rs:7:17: 7:24}` 2 --> $DIR/not-clone-closure.rs:11:23 3 | 4LL | let hello = move || { 5 | ------- within this `{closure@$DIR/not-clone-closure.rs:7:17: 7:24}` 6... 7LL | let hello = hello.clone(); 8 | ^^^^^ within `{closure@$DIR/not-clone-closure.rs:7:17: 7:24}`, the trait `Clone` is not implemented for `S` 9 | 10note: required because it's used within this closure 11 --> $DIR/not-clone-closure.rs:7:17 12 | 13LL | let hello = move || { 14 | ^^^^^^^ 15help: consider annotating `S` with `#[derive(Clone)]` 16 | 17LL + #[derive(Clone)] 18LL | struct S(i32); 19 | 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0277`.