Skip to content

Commit ed5d09d

Browse files
committed
Fix type error.
1 parent bd31498 commit ed5d09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/object_safety.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl ObjectSafetyViolation {
5858
ObjectSafetyViolation::Method(name, MethodViolationCode::Generic) =>
5959
format!("method `{}` has generic type parameters", name).into(),
6060
ObjectSafetyViolation::AssociatedConst(name) =>
61-
format!("the trait cannot contain associated consts like `{}`", name),
61+
format!("the trait cannot contain associated consts like `{}`", name).into(),
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)