]> git.lizzy.rs Git - rust.git/commitdiff
Changed error message for ObjectSafetyViolation::SupertraitSelf
authormandeep <mandeep@users.noreply.github.com>
Thu, 23 Mar 2017 02:16:37 +0000 (21:16 -0500)
committermandeep <mandeep@users.noreply.github.com>
Thu, 23 Mar 2017 02:16:37 +0000 (21:16 -0500)
src/librustc/traits/object_safety.rs

index 2ebe0d459fab1453451b02f4bc7fd208224ac76b..7cd0b26940d9118284e3adcc03b35a3fda36972d 100644 (file)
@@ -46,7 +46,7 @@ pub fn error_msg(&self) -> Cow<'static, str> {
                 "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) =>