Skip to content

Commit 4d5150c

Browse files
committed
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.
2 parents a9a0707 + 4f7834e commit 4d5150c

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)