| ^ method not found in `S`
|
= help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `a`, perhaps you need to implement it:
- candidate #1: `method::A`
+note: `method::A` defines an item `a`, perhaps you need to implement it
+ --> $DIR/trait-item-privacy.rs:6:5
+ |
+LL | trait A {
+ | ^^^^^^^
error[E0599]: no method named `b` found for struct `S` in the current scope
--> $DIR/trait-item-privacy.rs:68:7
| ^ function or associated item not found in `S`
|
= help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `a`, perhaps you need to implement it:
- candidate #1: `method::A`
+note: `method::A` defines an item `a`, perhaps you need to implement it
+ --> $DIR/trait-item-privacy.rs:6:5
+ |
+LL | trait A {
+ | ^^^^^^^
error[E0599]: no function or associated item named `b` found for struct `S` in the current scope
--> $DIR/trait-item-privacy.rs:80:8
| ^ associated item not found in `S`
|
= help: items from traits can only be used if the trait is implemented and in scope
- = note: the following trait defines an item `A`, perhaps you need to implement it:
- candidate #1: `assoc_const::A`
+note: `assoc_const::A` defines an item `A`, perhaps you need to implement it
+ --> $DIR/trait-item-privacy.rs:24:5
+ |
+LL | trait A {
+ | ^^^^^^^
error[E0599]: no associated item named `B` found for struct `S` in the current scope
--> $DIR/trait-item-privacy.rs:98:8