@@ -31,7 +31,9 @@ LL | | }
31
31
| |_- this function returns a `Result`
32
32
|
33
33
= help: the trait `FromResidual<Option<Infallible>>` is not implemented for `Result<u64, String>`
34
- = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
34
+ = help: the following other types implement trait `FromResidual<R>`:
35
+ <Result<T, F> as FromResidual<Result<Infallible, E>>>
36
+ <Result<T, F> as FromResidual<Yeet<E>>>
35
37
36
38
error[E0277]: the `?` operator can only be used on `Result`s in a function that returns `Result`
37
39
--> $DIR/bad-interconversion.rs:17:31
@@ -44,7 +46,9 @@ LL | | }
44
46
| |_- this function returns a `Result`
45
47
|
46
48
= help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Result<u64, String>`
47
- = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
49
+ = help: the following other types implement trait `FromResidual<R>`:
50
+ <Result<T, F> as FromResidual<Result<Infallible, E>>>
51
+ <Result<T, F> as FromResidual<Yeet<E>>>
48
52
49
53
error[E0277]: the `?` operator can only be used on `Option`s, not `Result`s, in a function that returns `Option`
50
54
--> $DIR/bad-interconversion.rs:22:22
@@ -57,7 +61,9 @@ LL | | }
57
61
| |_- this function returns an `Option`
58
62
|
59
63
= help: the trait `FromResidual<Result<Infallible, &str>>` is not implemented for `Option<u16>`
60
- = help: the trait `FromResidual` is implemented for `Option<T>`
64
+ = help: the following other types implement trait `FromResidual<R>`:
65
+ <Option<T> as FromResidual<Yeet<()>>>
66
+ <Option<T> as FromResidual>
61
67
62
68
error[E0277]: the `?` operator can only be used on `Option`s in a function that returns `Option`
63
69
--> $DIR/bad-interconversion.rs:27:33
@@ -70,7 +76,9 @@ LL | | }
70
76
| |_- this function returns an `Option`
71
77
|
72
78
= help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Option<u64>`
73
- = help: the trait `FromResidual` is implemented for `Option<T>`
79
+ = help: the following other types implement trait `FromResidual<R>`:
80
+ <Option<T> as FromResidual<Yeet<()>>>
81
+ <Option<T> as FromResidual>
74
82
75
83
error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
76
84
--> $DIR/bad-interconversion.rs:32:39
0 commit comments