|
1 | | -error[E0599]: no function or associated item named `foo` found for struct `Bar` in the current scope |
| 1 | +error[E0599]: no function or associated item named `a` found for struct `Foo` in the current scope |
2 | 2 | --> $DIR/suggest-trait-reexported-as-not-doc-visible.rs:9:10 |
3 | 3 | | |
4 | | -LL | Bar::foo(); |
5 | | - | ^^^ function or associated item not found in `Bar` |
| 4 | +LL | Foo::a(); |
| 5 | + | ^ function or associated item not found in `Foo` |
6 | 6 | | |
7 | 7 | = help: items from traits can only be used if the trait is in scope |
8 | | -help: trait `Foo` which provides `foo` is implemented but not in scope; perhaps you want to import it |
| 8 | +help: trait `TraitA` which provides `a` is implemented but not in scope; perhaps you want to import it |
9 | 9 | | |
10 | | -LL + use suggest_trait_reexported_as_not_doc_visible_a::Foo; |
| 10 | +LL + use suggest_trait_reexported_as_not_doc_visible_b::TraitA; |
| 11 | + | |
| 12 | +help: there is an associated function `b` with a similar name |
| 13 | + | |
| 14 | +LL - Foo::a(); |
| 15 | +LL + Foo::b(); |
| 16 | + | |
| 17 | + |
| 18 | +error[E0599]: no function or associated item named `b` found for struct `Foo` in the current scope |
| 19 | + --> $DIR/suggest-trait-reexported-as-not-doc-visible.rs:10:10 |
| 20 | + | |
| 21 | +LL | Foo::b(); |
| 22 | + | ^ function or associated item not found in `Foo` |
| 23 | + | |
| 24 | + = help: items from traits can only be used if the trait is in scope |
| 25 | +help: trait `TraitB` which provides `b` is implemented but not in scope; perhaps you want to import it |
| 26 | + | |
| 27 | +LL + use suggest_trait_reexported_as_not_doc_visible_a::TraitB; |
| 28 | + | |
| 29 | +help: there is an associated function `a` with a similar name |
| 30 | + | |
| 31 | +LL - Foo::b(); |
| 32 | +LL + Foo::a(); |
| 33 | + | |
| 34 | + |
| 35 | +error[E0599]: no function or associated item named `c` found for struct `Foo` in the current scope |
| 36 | + --> $DIR/suggest-trait-reexported-as-not-doc-visible.rs:11:10 |
| 37 | + | |
| 38 | +LL | Foo::c(); |
| 39 | + | ^ function or associated item not found in `Foo` |
| 40 | + | |
| 41 | + = help: items from traits can only be used if the trait is in scope |
| 42 | +help: trait `TraitC` which provides `c` is implemented but not in scope; perhaps you want to import it |
| 43 | + | |
| 44 | +LL + use suggest_trait_reexported_as_not_doc_visible_a::TraitC; |
| 45 | + | |
| 46 | +help: there is an associated function `a` with a similar name |
| 47 | + | |
| 48 | +LL - Foo::c(); |
| 49 | +LL + Foo::a(); |
11 | 50 | | |
12 | 51 |
|
13 | | -error: aborting due to 1 previous error |
| 52 | +error: aborting due to 3 previous errors |
14 | 53 |
|
15 | 54 | For more information about this error, try `rustc --explain E0599`. |
0 commit comments