Skip to content

Commit

Permalink
Fix more oopses
Browse files Browse the repository at this point in the history
Thanks mbartlett21 & ehuss!
  • Loading branch information
scottmcm committed Jan 11, 2021
1 parent 05a1c41 commit 6560a37
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions text/0000-try-trait-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ Why are we doing this? What use cases does it support? What is the expected outc

This is a simple enum:
```rust
struct ControlFlow<B, C = ()> {
Break(B),
Continue(C),
enum ControlFlow<B, C = ()> {
Break(B),
Continue(C),
}
```

Expand Down Expand Up @@ -215,8 +215,8 @@ LL | type Holder = MyResult<Infallible, U>;
|
::: C:\src\rust\library\core\src\ops\try.rs:102:18
|
LL | type Holder: BreakHolder<Self::Ok>;
| --------------------- required by this bound in `std::ops::Bubble::Holder`
LL | type Holder: BreakHolder<Self::Continue>;
| --------------------------- required by this bound in `std::ops::Bubble::Holder`
```

But that's a simple one:
Expand Down Expand Up @@ -309,7 +309,7 @@ trait Bubble {
}

trait BreakHolder<T> {
type Output: Try<Ok = T, Holder = Self>;
type Output: Try<Continue = T, Holder = Self>;
}

trait Try<H = <Self as Bubble>::Holder>: Bubble {
Expand Down

0 comments on commit 6560a37

Please sign in to comment.