rust/src/test/ui/issues/issue-2823.stderr

17 lines
572 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0599]: no method named `clone` found for type `C` in the current scope
2018-12-25 09:56:47 -06:00
--> $DIR/issue-2823.rs:13:16
2018-07-15 16:11:54 -05:00
|
LL | struct C {
| -------- method `clone` not found for this
...
2019-03-09 06:03:44 -06:00
LL | let _d = c.clone();
2018-07-15 16:11:54 -05:00
| ^^^^^
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `clone`, perhaps you need to implement it:
candidate #1: `std::clone::Clone`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.