2022-02-21 18:25:59 -06:00
|
|
|
error[E0599]: no method named `pick` found for struct `Chaenomeles` in the current scope
|
|
|
|
--> $DIR/dont-wrap-ambiguous-receivers.rs:18:25
|
|
|
|
|
|
|
|
|
LL | pub struct Chaenomeles;
|
2022-07-01 18:47:26 -05:00
|
|
|
| ---------------------- method `pick` not found for this struct
|
2022-02-21 18:25:59 -06:00
|
|
|
...
|
|
|
|
LL | banana::Chaenomeles.pick()
|
|
|
|
| ^^^^ method not found in `Chaenomeles`
|
|
|
|
|
|
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2024-02-13 17:05:23 -06:00
|
|
|
help: the following traits which provide `pick` are implemented but not in scope; perhaps you want to import one of them
|
2022-02-21 18:25:59 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use banana::Apple;
|
2022-02-21 18:25:59 -06:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use banana::Peach;
|
2022-02-21 18:25:59 -06:00
|
|
|
|
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-02-21 18:25:59 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|