about summary refs log tree commit diff
path: root/src/test/ui/tuple/tuple-struct-fields/test.stderr
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-11-24 07:37:01 +0000
committerbors <bors@rust-lang.org>2019-11-24 07:37:01 +0000
commit7d761fe0462ba0f671a237d0bb35e3579b8ba0e8 (patch)
treed7d3f93996e6f797a33361a13f051d2d7fe27457 /src/test/ui/tuple/tuple-struct-fields/test.stderr
parente41ced3f8d8e2f3f377ef931458e612d5f3d1f3f (diff)
parentc06a8ea727c720ed47b3f54192e92c449252d231 (diff)
downloadrust-7d761fe0462ba0f671a237d0bb35e3579b8ba0e8.tar.gz
rust-7d761fe0462ba0f671a237d0bb35e3579b8ba0e8.zip
Auto merge of #66322 - lzutao:consistent-result-map_or_else, r=dtolnay
Stabilize Result::map_or_else

Stabilized this API:
```rust
impl<T, E> Result<T, E> {
    pub fn map_or_else<U, D: FnOnce(E) -> U, F: FnOnce(T) -> U>(self, default: D, f: F) -> U {
        match self {
            Ok(t) => f(t),
            Err(e) => default(e),
        }
    }
}
```

Closes #53268
r? @SimonSapin
Diffstat (limited to 'src/test/ui/tuple/tuple-struct-fields/test.stderr')
0 files changed, 0 insertions, 0 deletions