about summary refs log tree commit diff
diff options
context:
space:
mode:
authormandeep <mandeep@users.noreply.github.com>2017-03-22 21:16:37 -0500
committermandeep <mandeep@users.noreply.github.com>2017-03-22 21:16:37 -0500
commit85dbc6570a304d7e61fc41d1a121d0b01619fb45 (patch)
tree0113df19bbddd4d24a8c129920b7c786a7d0608d
parent8c4f2c64c6759a82f143e23964a46a65c67509c9 (diff)
downloadrust-85dbc6570a304d7e61fc41d1a121d0b01619fb45.tar.gz
rust-85dbc6570a304d7e61fc41d1a121d0b01619fb45.zip
Changed error message for ObjectSafetyViolation::SupertraitSelf
-rw-r--r--src/librustc/traits/object_safety.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/traits/object_safety.rs b/src/librustc/traits/object_safety.rs
index 2ebe0d459fa..7cd0b26940d 100644
--- a/src/librustc/traits/object_safety.rs
+++ b/src/librustc/traits/object_safety.rs
@@ -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) =>