summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-07-14 10:29:35 -0700
committerEsteban Küber <esteban@kuber.com.ar>2017-07-27 19:18:22 -0700
commit4f7834e32cd5be7af45aa7cb7185ed30e9d854df (patch)
tree5ee334615cb941937dde548c8b2d3cf24b6e636b /src/libcore
parent8a78a12a55621f22475dedacc0f6b42bff87a4c1 (diff)
downloadrust-4f7834e32cd5be7af45aa7cb7185ed30e9d854df.tar.gz
rust-4f7834e32cd5be7af45aa7cb7185ed30e9d854df.zip
Use `rustc_on_unimplemented`'s trait name argument in `try`
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")]