about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-28 05:39:41 +0000
committerbors <bors@rust-lang.org>2017-07-28 05:39:41 +0000
commit4d5150ce19b0eefca97d213249e34f20036613fe (patch)
tree889ed208b78157351fe196333dc1be3973dd96e6 /src/libcore
parenta9a07078ba0b61cf900019634d6188a394f85abe (diff)
parent4f7834e32cd5be7af45aa7cb7185ed30e9d854df (diff)
downloadrust-4d5150ce19b0eefca97d213249e34f20036613fe.tar.gz
rust-4d5150ce19b0eefca97d213249e34f20036613fe.zip
Auto merge of #43238 - estebank:try-on-unimplemented-2, r=alexcrichton
Use `rustc_on_unimplemented`'s trait name argument in `try`

Follow up to #43000 and #43001. Fix #42694.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/ops/try.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ops/try.rs b/src/libcore/ops/try.rs
index 9da9879d38a..4971e825a6f 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")]