Changed error message for ObjectSafetyViolation::SupertraitSelf
This commit is contained in:
parent
8c4f2c64c6
commit
85dbc6570a
@ -46,7 +46,7 @@ impl ObjectSafetyViolation {
|
||||
"the trait cannot require that `Self : Sized`".into(),
|
||||
ObjectSafetyViolation::SupertraitSelf =>
|
||||
"the trait cannot use `Self` as a type parameter \
|
||||
in the supertrait listing".into(),
|
||||
in the supertraits or where-clauses".into(),
|
||||
ObjectSafetyViolation::Method(name, MethodViolationCode::StaticMethod) =>
|
||||
format!("method `{}` has no receiver", name).into(),
|
||||
ObjectSafetyViolation::Method(name, MethodViolationCode::ReferencesSelf) =>
|
||||
|
Loading…
Reference in New Issue
Block a user