Skip to content

Commit 4f7834e

Browse files
committed
Use rustc_on_unimplemented's trait name argument in try
1 parent 8a78a12 commit 4f7834e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ops/try.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// creating a new instance from a success or failure value.
1717
#[unstable(feature = "try_trait", issue = "42327")]
1818
#[rustc_on_unimplemented = "the `?` operator can only be used in a function that returns `Result` \
19-
(or another type that implements `std::ops::Try`)"]
19+
(or another type that implements `{Try}`)"]
2020
pub trait Try {
2121
/// The type of this value when viewed as successful.
2222
#[unstable(feature = "try_trait", issue = "42327")]

0 commit comments

Comments
 (0)