diff options
| author | mandeep <mandeep@users.noreply.github.com> | 2017-03-22 21:16:37 -0500 |
|---|---|---|
| committer | mandeep <mandeep@users.noreply.github.com> | 2017-03-22 21:16:37 -0500 |
| commit | 85dbc6570a304d7e61fc41d1a121d0b01619fb45 (patch) | |
| tree | 0113df19bbddd4d24a8c129920b7c786a7d0608d | |
| parent | 8c4f2c64c6759a82f143e23964a46a65c67509c9 (diff) | |
| download | rust-85dbc6570a304d7e61fc41d1a121d0b01619fb45.tar.gz rust-85dbc6570a304d7e61fc41d1a121d0b01619fb45.zip | |
Changed error message for ObjectSafetyViolation::SupertraitSelf
| -rw-r--r-- | src/librustc/traits/object_safety.rs | 2 |
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) => |
