]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/overlapping_pub_trait.stderr
Rollup merge of #107190 - fmease:fix-81698, r=compiler-errors
[rust.git] / tests / ui / imports / overlapping_pub_trait.stderr
1 error[E0599]: no method named `method` found for struct `S` in the current scope
2   --> $DIR/overlapping_pub_trait.rs:12:7
3    |
4 LL |     S.method();
5    |       ^^^^^^ method not found in `S`
6    |
7   ::: $DIR/auxiliary/overlapping_pub_trait_source.rs:11:23
8    |
9 LL |     pub trait Tr { fn method(&self); }
10    |                       ------ the method is available for `S` here
11    |
12    = help: items from traits can only be used if the trait is in scope
13 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
14    |
15 LL | use overlapping_pub_trait_source::m::Tr;
16    |
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0599`.