Fix type error.
This commit is contained in:
parent
bd31498ef6
commit
ed5d09d8f3
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ impl ObjectSafetyViolation {
|
|||
ObjectSafetyViolation::Method(name, MethodViolationCode::Generic) =>
|
||||
format!("method `{}` has generic type parameters", name).into(),
|
||||
ObjectSafetyViolation::AssociatedConst(name) =>
|
||||
format!("the trait cannot contain associated consts like `{}`", name),
|
||||
format!("the trait cannot contain associated consts like `{}`", name).into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue