File tree 1 file changed +0
-4
lines changed
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ error[E0277]: the `?` operator can only be used in an async block that returns `
57
57
39 | async fn question_mark_operator_with_invalid_option() -> Option<()> {
58
58
40 | None?;
59
59
| ^ cannot use the `?` operator in an async block that returns `()`
60
- |
61
- = help: the trait `FromResidual<Option<Infallible>>` is not implemented for `()`
62
60
63
61
error[E0308]: mismatched types
64
62
--> tests/fail/macros_type_mismatch.rs:40:5
@@ -87,8 +85,6 @@ error[E0277]: the `?` operator can only be used in an async block that returns `
87
85
56 | async fn question_mark_operator_with_invalid_result() -> Result<(), ()> {
88
86
57 | Ok(())?;
89
87
| ^ cannot use the `?` operator in an async block that returns `()`
90
- |
91
- = help: the trait `FromResidual<Result<Infallible, _>>` is not implemented for `()`
92
88
93
89
error[E0308]: mismatched types
94
90
--> tests/fail/macros_type_mismatch.rs:57:5
You can’t perform that action at this time.
0 commit comments