diff --git a/src/libcore/ops/try.rs b/src/libcore/ops/try.rs index 9da9879d38ab8..4971e825a6fbe 100644 --- a/src/libcore/ops/try.rs +++ b/src/libcore/ops/try.rs @@ -16,7 +16,7 @@ /// creating a new instance from a success or failure value. #[unstable(feature = "try_trait", issue = "42327")] #[rustc_on_unimplemented = "the `?` operator can only be used in a function that returns `Result` \ - (or another type that implements `std::ops::Try`)"] + (or another type that implements `{Try}`)"] pub trait Try { /// The type of this value when viewed as successful. #[unstable(feature = "try_trait", issue = "42327")]