]> git.lizzy.rs Git - rust.git/blob - tests/ui/not-clone-closure.stderr
Bless tests after rebase
[rust.git] / tests / ui / not-clone-closure.stderr
1 error[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    |
4 LL |     let hello = move || {
5    |                 ------- within this `[closure@$DIR/not-clone-closure.rs:7:17: 7:24]`
6 ...
7 LL |     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    |
10 note: required because it's used within this closure
11   --> $DIR/not-clone-closure.rs:7:17
12    |
13 LL |     let hello = move || {
14    |                 ^^^^^^^
15 help: consider annotating `S` with `#[derive(Clone)]`
16    |
17 LL | #[derive(Clone)]
18    |
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0277`.