Skip to content

Commit 85dbc65

Browse files
committed
Changed error message for ObjectSafetyViolation::SupertraitSelf
1 parent 8c4f2c6 commit 85dbc65

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
@@ -46,7 +46,7 @@ impl ObjectSafetyViolation {
4646
"the trait cannot require that `Self : Sized`".into(),
4747
ObjectSafetyViolation::SupertraitSelf =>
4848
"the trait cannot use `Self` as a type parameter \
49-
in the supertrait listing".into(),
49+
in the supertraits or where-clauses".into(),
5050
ObjectSafetyViolation::Method(name, MethodViolationCode::StaticMethod) =>
5151
format!("method `{}` has no receiver", name).into(),
5252
ObjectSafetyViolation::Method(name, MethodViolationCode::ReferencesSelf) =>

0 commit comments

Comments
 (0)