You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= help: the trait `FromResidual<Result<Infallible, &str>>` is not implemented for `ControlFlow<String>`
76
76
= help: the trait `FromResidual<ControlFlow<String, Infallible>>` is implemented for `ControlFlow<String>`
77
+
= help: for that trait implementation, expected `ControlFlow<String, Infallible>`, found `Result<Infallible, &str>`
77
78
78
79
error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
79
80
--> $DIR/bad-interconversion.rs:37:12
@@ -85,6 +86,7 @@ LL | Some(3)?;
85
86
|
86
87
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `ControlFlow<u64>`
87
88
= help: the trait `FromResidual<ControlFlow<u64, Infallible>>` is implemented for `ControlFlow<u64>`
89
+
= help: for that trait implementation, expected `ControlFlow<u64, Infallible>`, found `Option<Infallible>`
88
90
89
91
error[E0277]: the `?` operator in a function that returns `ControlFlow<B, _>` can only be used on other `ControlFlow<B, _>`s (with the same Break type)
90
92
--> $DIR/bad-interconversion.rs:43:29
@@ -97,6 +99,7 @@ LL | ControlFlow::Break(4_u8)?;
97
99
= help: the trait `FromResidual<ControlFlow<u8, Infallible>>` is not implemented for `ControlFlow<i64>`
98
100
= note: unlike `Result`, there's no `From`-conversion performed for `ControlFlow`
99
101
= help: the trait `FromResidual<ControlFlow<i64, Infallible>>` is implemented for `ControlFlow<i64>`
102
+
= help: for that trait implementation, expected `i64`, found `u8`
0 commit comments