From 4f7834e32cd5be7af45aa7cb7185ed30e9d854df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Fri, 14 Jul 2017 10:29:35 -0700 Subject: [PATCH] Use `rustc_on_unimplemented`'s trait name argument in `try` --- src/libcore/ops/try.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")]