1 error[E0599]: no method named `a` found for type `S` in the current scope
2 --> $DIR/trait-item-privacy.rs:67:7
5 | --------- method `a` not found for this
10 = help: items from traits can only be used if the trait is implemented and in scope
11 = note: the following trait defines an item `a`, perhaps you need to implement it:
12 candidate #1: `method::A`
14 error[E0599]: no method named `b` found for type `S` in the current scope
15 --> $DIR/trait-item-privacy.rs:68:7
18 | --------- method `b` not found for this
23 | the method is available for `std::boxed::Box<S>` here
24 | the method is available for `std::sync::Arc<S>` here
25 | the method is available for `std::rc::Rc<S>` here
30 = help: items from traits can only be used if the trait is in scope
31 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
36 error[E0624]: method `a` is private
37 --> $DIR/trait-item-privacy.rs:72:7
42 error[E0599]: no function or associated item named `a` found for type `S` in the current scope
43 --> $DIR/trait-item-privacy.rs:78:8
46 | --------- function or associated item `a` not found for this
49 | ^ function or associated item not found in `S`
51 = help: items from traits can only be used if the trait is implemented and in scope
52 = note: the following trait defines an item `a`, perhaps you need to implement it:
53 candidate #1: `method::A`
55 error[E0599]: no function or associated item named `b` found for type `S` in the current scope
56 --> $DIR/trait-item-privacy.rs:80:8
59 | --------- function or associated item `b` not found for this
62 | ^ function or associated item not found in `S`
64 = help: items from traits can only be used if the trait is in scope
65 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
70 error[E0624]: method `a` is private
71 --> $DIR/trait-item-privacy.rs:84:5
76 error[E0599]: no associated item named `A` found for type `S` in the current scope
77 --> $DIR/trait-item-privacy.rs:97:8
80 | --------- associated item `A` not found for this
83 | ^ associated item not found in `S`
85 = help: items from traits can only be used if the trait is implemented and in scope
86 = note: the following trait defines an item `A`, perhaps you need to implement it:
87 candidate #1: `assoc_const::A`
89 error[E0599]: no associated item named `B` found for type `S` in the current scope
90 --> $DIR/trait-item-privacy.rs:98:8
93 | --------- associated item `B` not found for this
96 | ^ associated item not found in `S`
98 = help: items from traits can only be used if the trait is in scope
99 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
101 LL | use assoc_const::B;
104 error[E0624]: associated constant `A` is private
105 --> $DIR/trait-item-privacy.rs:101:5
110 error[E0038]: the trait `assoc_const::C` cannot be made into an object
111 --> $DIR/trait-item-privacy.rs:101:5
113 LL | const A: u8 = 0;
114 | - the trait cannot contain associated consts like `A`
116 LL | const B: u8 = 0;
117 | - the trait cannot contain associated consts like `B`
119 LL | const C: u8 = 0;
120 | - the trait cannot contain associated consts like `C`
123 | ^^^^ the trait `assoc_const::C` cannot be made into an object
125 error[E0223]: ambiguous associated type
126 --> $DIR/trait-item-privacy.rs:115:12
129 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
131 error[E0223]: ambiguous associated type
132 --> $DIR/trait-item-privacy.rs:116:12
135 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::B`
137 error[E0223]: ambiguous associated type
138 --> $DIR/trait-item-privacy.rs:117:12
141 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::C`
143 error: associated type `A` is private
144 --> $DIR/trait-item-privacy.rs:119:12
149 error: associated type `A` is private
150 --> $DIR/trait-item-privacy.rs:128:9
155 error: aborting due to 15 previous errors
157 Some errors have detailed explanations: E0038, E0223, E0599, E0624.
158 For more information about an error, try `rustc --explain E0038`.