Skip to content

Commit 6560a37

Browse files
committed
Fix more oopses
Thanks mbartlett21 & ehuss!
1 parent 05a1c41 commit 6560a37

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

text/0000-try-trait-v2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ Why are we doing this? What use cases does it support? What is the expected outc
4949

5050
This is a simple enum:
5151
```rust
52-
struct ControlFlow<B, C = ()> {
53-
Break(B),
54-
Continue(C),
52+
enum ControlFlow<B, C = ()> {
53+
Break(B),
54+
Continue(C),
5555
}
5656
```
5757

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

222222
But that's a simple one:
@@ -309,7 +309,7 @@ trait Bubble {
309309
}
310310

311311
trait BreakHolder<T> {
312-
type Output: Try<Ok = T, Holder = Self>;
312+
type Output: Try<Continue = T, Holder = Self>;
313313
}
314314

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

0 commit comments

Comments
 (0)