Skip to content

Commit 1cd2a58

Browse files
authored
Rollup merge of rust-lang#90532 - fee1-dead:improve-const-fn-err-msg, r=oli-obk
More informative error message for E0015 Helps with rust-lang#92380
2 parents 4f1036a + e3c1125 commit 1cd2a58

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)