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