Tracking Issue for Result::flatten (result_flattening
) · Issue #70142 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
This is a tracking issue for the Result::flatten
API.
The feature gate for the issue is #![feature(result_flattening)]
.
impl<T, E> Result<Result<T, E>, E> { pub fn flatten(self) -> Result<T, E>; }
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implement
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
Implementation history
- Implementation Add Result<Result<T, E>, E>::flatten -> Result<T, E> #70140