@@ -100,30 +100,6 @@ error[E0624]: associated constant `A` is private
100
100
LL | C::A; //~ ERROR associated constant `A` is private
101
101
| ^^^^
102
102
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
-
127
103
error[E0038]: the trait `assoc_const::C` cannot be made into an object
128
104
--> $DIR/trait-item-privacy.rs:111:5
129
105
|
@@ -135,36 +111,36 @@ LL | C::A; //~ ERROR associated constant `A` is private
135
111
= note: the trait cannot contain associated consts like `A`
136
112
137
113
error[E0223]: ambiguous associated type
138
- --> $DIR/trait-item-privacy.rs:127 :12
114
+ --> $DIR/trait-item-privacy.rs:125 :12
139
115
|
140
116
LL | let _: S::A; //~ ERROR ambiguous associated type
141
117
| ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
142
118
143
119
error[E0223]: ambiguous associated type
144
- --> $DIR/trait-item-privacy.rs:128 :12
120
+ --> $DIR/trait-item-privacy.rs:126 :12
145
121
|
146
122
LL | let _: S::B; //~ ERROR ambiguous associated type
147
123
| ^^^^ help: use fully-qualified syntax: `<S as Trait>::B`
148
124
149
125
error[E0223]: ambiguous associated type
150
- --> $DIR/trait-item-privacy.rs:129 :12
126
+ --> $DIR/trait-item-privacy.rs:127 :12
151
127
|
152
128
LL | let _: S::C; //~ ERROR ambiguous associated type
153
129
| ^^^^ help: use fully-qualified syntax: `<S as Trait>::C`
154
130
155
131
error: associated type `A` is private
156
- --> $DIR/trait-item-privacy.rs:131 :12
132
+ --> $DIR/trait-item-privacy.rs:129 :12
157
133
|
158
134
LL | let _: T::A; //~ ERROR associated type `A` is private
159
135
| ^^^^
160
136
161
137
error: associated type `A` is private
162
- --> $DIR/trait-item-privacy.rs:140 :9
138
+ --> $DIR/trait-item-privacy.rs:138 :9
163
139
|
164
140
LL | A = u8, //~ ERROR associated type `A` is private
165
141
| ^^^^^^
166
142
167
- error: aborting due to 17 previous errors
143
+ error: aborting due to 15 previous errors
168
144
169
- Some errors occurred: E0038, E0223, E0277, E0599, E0624.
145
+ Some errors occurred: E0038, E0223, E0599, E0624.
170
146
For more information about an error, try `rustc --explain E0038`.
0 commit comments