"method `{}` is not a member of trait `{}`",
method,
trait_);
- err.span_label(span, &format!("not a member of `{}`", trait_));
+ err.span_label(span, &format!("not a member of trait `{}`", trait_));
err
}
ResolutionError::TypeNotMemberOfTrait(type_, trait_) => {
"type `{}` is not a member of trait `{}`",
type_,
trait_);
- err.span_label(span, &format!("not a member of trait `Foo`"));
+ err.span_label(span, &format!("not a member of trait `{}`", trait_));
err
}
ResolutionError::ConstNotMemberOfTrait(const_, trait_) => {
"const `{}` is not a member of trait `{}`",
const_,
trait_);
- err.span_label(span, &format!("not a member of trait `Foo`"));
+ err.span_label(span, &format!("not a member of trait `{}`", trait_));
err
}
ResolutionError::VariableNotBoundInPattern(variable_name, from, to) => {
#![feature(associated_consts)]
-trait Foo {}
+trait Bar {}
-impl Foo for i32 {
+impl Bar for i32 {
const BAR: bool = true; //~ ERROR E0438
- //~| NOTE not a member of trait `Foo`
+ //~| NOTE not a member of trait `Bar`
}
fn main () {