We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd31498 commit ed5d09dCopy full SHA for ed5d09d
src/librustc/traits/object_safety.rs
@@ -58,7 +58,7 @@ impl ObjectSafetyViolation {
58
ObjectSafetyViolation::Method(name, MethodViolationCode::Generic) =>
59
format!("method `{}` has generic type parameters", name).into(),
60
ObjectSafetyViolation::AssociatedConst(name) =>
61
- format!("the trait cannot contain associated consts like `{}`", name),
+ format!("the trait cannot contain associated consts like `{}`", name).into(),
62
}
63
64
0 commit comments