@@ -100,30 +100,6 @@ error[E0624]: associated constant `A` is private
100100LL | C::A; //~ ERROR associated constant `A` is private
101101 | ^^^^
102102
103- error[E0277]: the trait bound `dyn assoc_const::C: assoc_const::A` is not satisfied
104- --> $DIR/trait-item-privacy.rs:111:5
105- |
106- LL | C::A; //~ ERROR associated constant `A` is private
107- | ^^^^ the trait `assoc_const::A` is not implemented for `dyn assoc_const::C`
108- |
109- note: required by `assoc_const::A::A`
110- --> $DIR/trait-item-privacy.rs:35:9
111- |
112- LL | const A: u8 = 0;
113- | ^^^^^^^^^^^^^^^^
114-
115- error[E0277]: the trait bound `dyn assoc_const::C: assoc_const::B` is not satisfied
116- --> $DIR/trait-item-privacy.rs:114:5
117- |
118- LL | C::B; // ERROR the trait `assoc_const::C` cannot be made into an object
119- | ^^^^ the trait `assoc_const::B` is not implemented for `dyn assoc_const::C`
120- |
121- note: required by `assoc_const::B::B`
122- --> $DIR/trait-item-privacy.rs:39:9
123- |
124- LL | const B: u8 = 0;
125- | ^^^^^^^^^^^^^^^^
126-
127103error[E0038]: the trait `assoc_const::C` cannot be made into an object
128104 --> $DIR/trait-item-privacy.rs:111:5
129105 |
@@ -135,36 +111,36 @@ LL | C::A; //~ ERROR associated constant `A` is private
135111 = note: the trait cannot contain associated consts like `A`
136112
137113error[E0223]: ambiguous associated type
138- --> $DIR/trait-item-privacy.rs:127 :12
114+ --> $DIR/trait-item-privacy.rs:125 :12
139115 |
140116LL | let _: S::A; //~ ERROR ambiguous associated type
141117 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
142118
143119error[E0223]: ambiguous associated type
144- --> $DIR/trait-item-privacy.rs:128 :12
120+ --> $DIR/trait-item-privacy.rs:126 :12
145121 |
146122LL | let _: S::B; //~ ERROR ambiguous associated type
147123 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::B`
148124
149125error[E0223]: ambiguous associated type
150- --> $DIR/trait-item-privacy.rs:129 :12
126+ --> $DIR/trait-item-privacy.rs:127 :12
151127 |
152128LL | let _: S::C; //~ ERROR ambiguous associated type
153129 | ^^^^ help: use fully-qualified syntax: `<S as Trait>::C`
154130
155131error: associated type `A` is private
156- --> $DIR/trait-item-privacy.rs:131 :12
132+ --> $DIR/trait-item-privacy.rs:129 :12
157133 |
158134LL | let _: T::A; //~ ERROR associated type `A` is private
159135 | ^^^^
160136
161137error: associated type `A` is private
162- --> $DIR/trait-item-privacy.rs:140 :9
138+ --> $DIR/trait-item-privacy.rs:138 :9
163139 |
164140LL | A = u8, //~ ERROR associated type `A` is private
165141 | ^^^^^^
166142
167- error: aborting due to 17 previous errors
143+ error: aborting due to 15 previous errors
168144
169- Some errors occurred: E0038, E0223, E0277, E0599, E0624.
145+ Some errors occurred: E0038, E0223, E0599, E0624.
170146For more information about an error, try `rustc --explain E0038`.
0 commit comments