Skip to content

Commit e3c1125

Browse files
committed
Improve error messages even more
1 parent a33a3ae commit e3c1125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ops/try_trait.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ pub trait Try: FromResidual {
302302
enclosing_scope = "this function should return `Result` or `Option` to accept `?`"
303303
),
304304
)]
305+
#[rustc_diagnostic_item = "FromResidual"]
305306
#[unstable(feature = "try_trait_v2", issue = "84277")]
306307
pub trait FromResidual<R = <Self as Try>::Residual> {
307308
/// Constructs the type from a compatible `Residual` type.

0 commit comments

Comments
 (0)