]> git.proxmox.com Git - rustc.git/blame - src/test/ui/noncopyable-class.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / noncopyable-class.stderr
CommitLineData
dfeec247 1error[E0599]: no method named `clone` found for struct `Foo` in the current scope
0731742a 2 --> $DIR/noncopyable-class.rs:34:16
8faf50e0 3 |
0731742a 4LL | struct Foo {
b7449926 5 | ---------- method `clone` not found for this
8faf50e0 6...
532ac7d7 7LL | let _y = x.clone();
e1599b0c 8 | ^^^^^ method not found in `Foo`
ba9703b0
XL
9 |
10 ::: $SRC_DIR/libcore/clone.rs:LL:COL
11 |
12LL | fn clone(&self) -> Self;
13 | -----
14 | |
15 | the method is available for `std::sync::Arc<Foo>` here
16 | the method is available for `std::rc::Rc<Foo>` here
8faf50e0
XL
17 |
18 = help: items from traits can only be used if the trait is implemented and in scope
19 = note: the following trait defines an item `clone`, perhaps you need to implement it:
20 candidate #1: `std::clone::Clone`
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0599`.