]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-clone-closure.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / not-clone-closure.stderr
1 error[E0277]: the trait bound `S: std::clone::Clone` is not satisfied in `[closure@$DIR/not-clone-closure.rs:7:17: 9:6 a:S]`
2   --> $DIR/not-clone-closure.rs:11:23
3    |
4 LL |     let hello = hello.clone(); //~ ERROR the trait bound `S: std::clone::Clone` is not satisfied
5    |                       ^^^^^ within `[closure@$DIR/not-clone-closure.rs:7:17: 9:6 a:S]`, the trait `std::clone::Clone` is not implemented for `S`
6    |
7    = note: required because it appears within the type `[closure@$DIR/not-clone-closure.rs:7:17: 9:6 a:S]`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0277`.