Files
rust/tests/ui/methods/clone-missing.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2025-04-29 12:46:26 +02:00
error[E0599]: no method named `clone` found for struct `NotClone` in the current scope
--> $DIR/clone-missing.rs:28:16
2018-08-08 14:28:26 +02:00
|
2025-04-29 12:46:26 +02:00
LL | struct NotClone {
| --------------- method `clone` not found for this struct
2018-08-08 14:28:26 +02:00
...
LL | let _y = x.clone();
2025-04-29 12:46:26 +02:00
| ^^^^^ method not found in `NotClone`
2018-08-08 14:28:26 +02: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: `Clone`
2018-08-08 14:28:26 +02:00
2025-04-29 12:46:26 +02:00
error[E0599]: no method named `clone` found for struct `AlsoNotClone` in the current scope
--> $DIR/clone-missing.rs:32:16
|
LL | struct AlsoNotClone {
| ------------------- method `clone` not found for this struct
...
LL | let _y = x.clone();
| ^^^^^ method not found in `AlsoNotClone`
|
= 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: `Clone`
error: aborting due to 2 previous errors
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0599`.