]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/dont-wrap-ambiguous-receivers.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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 struct
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`.