fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
775 B17 linesraw
1error[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   |
4LL |       let hello = move || {
5   |  _________________-
6LL | |         println!("Hello {}", a.0);
7LL | |     };
8   | |_____- within this `[closure@$DIR/not-clone-closure.rs:7:17: 9:6 a:S]`
9LL | 
10LL |       let hello = hello.clone();
11   |                         ^^^^^ within `[closure@$DIR/not-clone-closure.rs:7:17: 9:6 a:S]`, the trait `std::clone::Clone` is not implemented for `S`
12   |
13   = note: required because it appears within the type `[closure@$DIR/not-clone-closure.rs:7:17: 9:6 a:S]`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.