Changed error message for ObjectSafetyViolation::SupertraitSelf
This commit is contained in:
parent
8c4f2c64c6
commit
85dbc6570a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue