fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
712 B15 linesraw
1error[E0599]: no method named `clone` found for type `std::boxed::Box<R>` in the current scope
2  --> $DIR/unique-pinned-nocopy.rs:12:16
3   |
4LL |     let _j = i.clone();
5   |                ^^^^^ method not found in `std::boxed::Box<R>`
6   |
7   = note: the method `clone` exists but the following trait bounds were not satisfied:
8           `std::boxed::Box<R> : std::clone::Clone`
9   = help: items from traits can only be used if the trait is implemented and in scope
10   = note: the following trait defines an item `clone`, perhaps you need to implement it:
11           candidate #1: `std::clone::Clone`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0599`.