]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/dont-wrap-ambiguous-receivers.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / suggestions / dont-wrap-ambiguous-receivers.stderr
1 error[E0599]: no method named `pick` found for struct `Chaenomeles` in the current scope
2 --> $DIR/dont-wrap-ambiguous-receivers.rs:18:25
3 |
4 LL | pub struct Chaenomeles;
5 | ----------------------- method `pick` not found for this
6 ...
7 LL | banana::Chaenomeles.pick()
8 | ^^^^ method not found in `Chaenomeles`
9 |
10 = help: items from traits can only be used if the trait is in scope
11 help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
12 |
13 LL | use banana::Apple;
14 |
15 LL | use banana::Peach;
16 |
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0599`.