We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f1036a + e3c1125 commit 1cd2a58Copy full SHA for 1cd2a58
core/src/ops/try_trait.rs
@@ -302,6 +302,7 @@ pub trait Try: FromResidual {
302
enclosing_scope = "this function should return `Result` or `Option` to accept `?`"
303
),
304
)]
305
+#[rustc_diagnostic_item = "FromResidual"]
306
#[unstable(feature = "try_trait_v2", issue = "84277")]
307
pub trait FromResidual<R = <Self as Try>::Residual> {
308
/// Constructs the type from a compatible `Residual` type.
0 commit comments