]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | error[E0599]: no method named `clone` found for struct `Foo` in the current scope |
0731742a | 2 | --> $DIR/noncopyable-class.rs:34:16 |
8faf50e0 | 3 | | |
0731742a | 4 | LL | struct Foo { |
b7449926 | 5 | | ---------- method `clone` not found for this |
8faf50e0 | 6 | ... |
532ac7d7 | 7 | LL | let _y = x.clone(); |
e1599b0c | 8 | | ^^^^^ method not found in `Foo` |
ba9703b0 XL |
9 | | |
10 | ::: $SRC_DIR/libcore/clone.rs:LL:COL | |
11 | | | |
12 | LL | 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 | ||
22 | error: aborting due to previous error | |
23 | ||
24 | For more information about this error, try `rustc --explain E0599`. |