]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/use-placement-typeck.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / use-placement-typeck.stderr
1 error[E0599]: no method named `abc` found for struct `S` in the current scope
2   --> $DIR/use-placement-typeck.rs:11:7
3    |
4 LL |     s.abc();
5    |       ^^^ method not found in `S`
6 ...
7 LL |         fn abc(&self) {}
8    |            --- the method is available for `S` here
9 LL |     }
10 LL |     pub struct S;
11    |     ------------- method `abc` not found for this
12    |
13    = help: items from traits can only be used if the trait is in scope
14 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
15    |
16 LL | use m::Foo;
17    |
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0599`.