]> git.proxmox.com Git - rustc.git/blob - src/test/ui/unique-pinned-nocopy.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / unique-pinned-nocopy.stderr
1 error[E0599]: no method named `clone` found for struct `std::boxed::Box<R>` in the current scope
2 --> $DIR/unique-pinned-nocopy.rs:12:16
3 |
4 LL | struct R {
5 | -------- doesn't satisfy `R: std::clone::Clone`
6 ...
7 LL | let _j = i.clone();
8 | ^^^^^ method not found in `std::boxed::Box<R>`
9 |
10 ::: $SRC_DIR/liballoc/boxed.rs:LL:COL
11 |
12 LL | pub struct Box<T: ?Sized>(Unique<T>);
13 | ------------------------------------- doesn't satisfy `std::boxed::Box<R>: std::clone::Clone`
14 |
15 ::: $SRC_DIR/libcore/clone.rs:LL:COL
16 |
17 LL | fn clone(&self) -> Self;
18 | -----
19 | |
20 | the method is available for `std::sync::Arc<std::boxed::Box<R>>` here
21 | the method is available for `std::rc::Rc<std::boxed::Box<R>>` here
22 |
23 = note: the method `clone` exists but the following trait bounds were not satisfied:
24 `R: std::clone::Clone`
25 which is required by `std::boxed::Box<R>: std::clone::Clone`
26 = help: items from traits can only be used if the trait is implemented and in scope
27 = note: the following trait defines an item `clone`, perhaps you need to implement it:
28 candidate #1: `std::clone::Clone`
29
30 error: aborting due to previous error
31
32 For more information about this error, try `rustc --explain E0599`.