@@ -247,7 +247,7 @@ fn resolve_struct_error<'b, 'a: 'b, 'c>(resolver: &'b Resolver<'a>,
247
247
"method `{}` is not a member of trait `{}`" ,
248
248
method,
249
249
trait_) ;
250
- err. span_label ( span, & format ! ( "not a member of `{}`" , trait_) ) ;
250
+ err. span_label ( span, & format ! ( "not a member of trait `{}`" , trait_) ) ;
251
251
err
252
252
}
253
253
ResolutionError :: TypeNotMemberOfTrait ( type_, trait_) => {
@@ -257,7 +257,7 @@ fn resolve_struct_error<'b, 'a: 'b, 'c>(resolver: &'b Resolver<'a>,
257
257
"type `{}` is not a member of trait `{}`" ,
258
258
type_,
259
259
trait_) ;
260
- err. span_label ( span, & format ! ( "not a member of trait `Foo`" ) ) ;
260
+ err. span_label ( span, & format ! ( "not a member of trait `{}`" , trait_ ) ) ;
261
261
err
262
262
}
263
263
ResolutionError :: ConstNotMemberOfTrait ( const_, trait_) => {
@@ -267,7 +267,7 @@ fn resolve_struct_error<'b, 'a: 'b, 'c>(resolver: &'b Resolver<'a>,
267
267
"const `{}` is not a member of trait `{}`" ,
268
268
const_,
269
269
trait_) ;
270
- err. span_label ( span, & format ! ( "not a member of trait `Foo`" ) ) ;
270
+ err. span_label ( span, & format ! ( "not a member of trait `{}`" , trait_ ) ) ;
271
271
err
272
272
}
273
273
ResolutionError :: VariableNotBoundInPattern ( variable_name, from, to) => {
0 commit comments