Tracking Issue for ops::Yeet
(feature(try_trait_v2_yeet)
) · Issue #96374 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Feature gate: #![feature(try_trait_v2_yeet)]
This is a tracking issue for standard library additions related to #96373, which for now means the ops::Yeet
struct and related impl
s.
It currently exists experimentally. Per the lang process, this cannot go further than experimenting without an approved RFC -- and will certainly not stabilize under the name Yeet
. Please try this out and give experience reports, but be aware that it may well change drastically or be removed entirely.
Public API
// core::ops pub struct Yeet(pub E);
impl ops::FromResidual<ops::Yeet<()>> for Option; impl<T, E, F: From> ops::FromResidual<ops::Yeet> for Result<T, F>;
Steps / History
- Implementation: Add do yeet expressions to allow experimentation in nightly #96376
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- The name, of course.