1 error[E0599]: no method named `a` found for struct `S` in the current scope
2 --> $DIR/item-privacy.rs:67:7
5 | --------- method `a` not found for this
8 | ^ method not found in `S`
10 = help: items from traits can only be used if the trait is implemented and in scope
11 note: `method::A` defines an item `a`, perhaps you need to implement it
12 --> $DIR/item-privacy.rs:6:5
17 error[E0599]: no method named `b` found for struct `S` in the current scope
18 --> $DIR/item-privacy.rs:68:7
21 | --------- method `b` not found for this
24 | ^ method not found in `S`
26 = help: items from traits can only be used if the trait is in scope
27 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
32 error[E0624]: associated function `a` is private
33 --> $DIR/item-privacy.rs:72:7
36 | ^ private associated function
38 error[E0599]: no function or associated item named `a` found for struct `S` in the current scope
39 --> $DIR/item-privacy.rs:78:8
42 | --------- function or associated item `a` not found for this
45 | ^ function or associated item not found in `S`
47 = help: items from traits can only be used if the trait is implemented and in scope
48 note: `method::A` defines an item `a`, perhaps you need to implement it
49 --> $DIR/item-privacy.rs:6:5
54 error[E0599]: no function or associated item named `b` found for struct `S` in the current scope
55 --> $DIR/item-privacy.rs:80:8
58 | --------- function or associated item `b` not found for this
61 | ^ function or associated item not found in `S`
63 = help: items from traits can only be used if the trait is in scope
64 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
69 error[E0624]: associated function `a` is private
70 --> $DIR/item-privacy.rs:84:14
73 | ^ private associated function
75 error[E0599]: no associated item named `A` found for struct `S` in the current scope
76 --> $DIR/item-privacy.rs:97:8
79 | --------- associated item `A` not found for this
82 | ^ associated item not found in `S`
84 = help: items from traits can only be used if the trait is implemented and in scope
85 note: `assoc_const::A` defines an item `A`, perhaps you need to implement it
86 --> $DIR/item-privacy.rs:24:5
91 error[E0599]: no associated item named `B` found for struct `S` in the current scope
92 --> $DIR/item-privacy.rs:98:8
95 | --------- associated item `B` not found for this
98 | ^ associated item not found in `S`
100 = help: items from traits can only be used if the trait is in scope
101 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
103 LL | use assoc_const::B;
106 error[E0624]: associated constant `A` is private
107 --> $DIR/item-privacy.rs:101:14
110 | ^ private associated constant
112 error[E0038]: the trait `assoc_const::C` cannot be made into an object
113 --> $DIR/item-privacy.rs:101:6
116 | ^^^^^ `assoc_const::C` cannot be made into an object
118 = help: consider moving `C` to another trait
119 = help: consider moving `B` to another trait
120 = help: consider moving `A` to another trait
121 note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
122 --> $DIR/item-privacy.rs:25:15
124 LL | const A: u8 = 0;
125 | ^ ...because it contains this associated `const`
127 LL | const B: u8 = 0;
128 | ^ ...because it contains this associated `const`
130 LL | pub trait C: A + B {
131 | - this trait cannot be made into an object...
132 LL | const C: u8 = 0;
133 | ^ ...because it contains this associated `const`
135 error[E0223]: ambiguous associated type
136 --> $DIR/item-privacy.rs:115:12
139 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
141 error[E0223]: ambiguous associated type
142 --> $DIR/item-privacy.rs:116:12
145 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::B`
147 error[E0223]: ambiguous associated type
148 --> $DIR/item-privacy.rs:117:12
151 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::C`
153 error: associated type `A` is private
154 --> $DIR/item-privacy.rs:119:12
157 | ^^^^ private associated type
159 error: associated type `A` is private
160 --> $DIR/item-privacy.rs:128:9
163 | ^^^^^^ private associated type
165 error: aborting due to 15 previous errors
167 Some errors have detailed explanations: E0038, E0223, E0599, E0624.
168 For more information about an error, try `rustc --explain E0038`.