File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ Why are we doing this? What use cases does it support? What is the expected outc
49
49
50
50
This is a simple enum:
51
51
``` rust
52
- struct ControlFlow <B , C = ()> {
53
- Break (B ),
54
- Continue (C ),
52
+ enum ControlFlow <B , C = ()> {
53
+ Break (B ),
54
+ Continue (C ),
55
55
}
56
56
```
57
57
@@ -215,8 +215,8 @@ LL | type Holder = MyResult<Infallible, U>;
215
215
|
216
216
:: : C : \src \rust \library \core \src \ops \try . rs: 102 : 18
217
217
|
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 `
220
220
```
221
221
222
222
But that's a simple one:
@@ -309,7 +309,7 @@ trait Bubble {
309
309
}
310
310
311
311
trait BreakHolder <T > {
312
- type Output : Try <Ok = T , Holder = Self >;
312
+ type Output : Try <Continue = T , Holder = Self >;
313
313
}
314
314
315
315
trait Try <H = <Self as Bubble >:: Holder >: Bubble {
You can’t perform that action at this time.
0 commit comments