diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-07-27 11:08:16 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-08-10 12:07:17 +0200 |
| commit | 99468bb7609ad5f598ef105860ceb32bc1b95074 (patch) | |
| tree | 9f0c30d79468e26d2ef8a34ce869ff98883ace55 /tests/ui/try-trait/try-operator-custom.rs | |
| parent | cd40769c02e31649bae3422ec7215783bc9d416f (diff) | |
| download | rust-99468bb7609ad5f598ef105860ceb32bc1b95074.tar.gz rust-99468bb7609ad5f598ef105860ceb32bc1b95074.zip | |
Update tests
Diffstat (limited to 'tests/ui/try-trait/try-operator-custom.rs')
| -rw-r--r-- | tests/ui/try-trait/try-operator-custom.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/ui/try-trait/try-operator-custom.rs b/tests/ui/try-trait/try-operator-custom.rs index ab0772dd228..936c0b0689a 100644 --- a/tests/ui/try-trait/try-operator-custom.rs +++ b/tests/ui/try-trait/try-operator-custom.rs @@ -31,7 +31,6 @@ impl<U, V> Try for MyResult<U, V> { impl<U, V, W> FromResidual<MyResult<Never, V>> for MyResult<U, W> where V: Into<W> { fn from_residual(x: MyResult<Never, V>) -> Self { match x { - MyResult::Awesome(u) => match u {}, MyResult::Terrible(e) => MyResult::Terrible(e.into()), } } @@ -42,7 +41,6 @@ type ResultResidual<E> = Result<std::convert::Infallible, E>; impl<U, V, W> FromResidual<ResultResidual<V>> for MyResult<U, W> where V: Into<W> { fn from_residual(x: ResultResidual<V>) -> Self { match x { - Ok(v) => match v {} Err(e) => MyResult::Terrible(e.into()), } } @@ -51,7 +49,6 @@ impl<U, V, W> FromResidual<ResultResidual<V>> for MyResult<U, W> where V: Into<W impl<U, V, W> FromResidual<MyResult<Never, V>> for Result<U, W> where V: Into<W> { fn from_residual(x: MyResult<Never, V>) -> Self { match x { - MyResult::Awesome(u) => match u {}, MyResult::Terrible(e) => Err(e.into()), } } |
