File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -371,11 +371,14 @@ pub const trait Residual<O>: Sized {
371371/// but importantly not on the contextual type the way it would be if
372372 /// we called `<_ as FromResidual >:: from_residual ( r) ` directly.
373373#[ unstable ( feature = "try_trait_v2_residual" , issue = "91285" ) ]
374+ #[ rustc_const_unstable ( feature = "const_try_residual" , issue = "91285" ) ]
374375// needs to be `pub` to avoid `private type` errors
375376#[ expect ( unreachable_pub) ]
376377#[ inline] // FIXME: force would be nice, but fails -- see #148915
377378#[ lang = "into_try_type" ]
378- pub fn residual_into_try_type<R : Residual <O >, O >( r: R ) -> <R as Residual < O > >:: TryType {
379+ pub const fn residual_into_try_type<R : [ const ] Residual <O >, O >(
380+ r: R ,
381+ ) -> <R as Residual < O > >:: TryType {
379382 FromResidual :: from_residual ( r)
380383}
381384
You can’t perform that action at this time.
0 commit comments