@@ -10,15 +10,16 @@ error[E0277]: the `?` operator can only be used in a function that returns `Resu
10
10
= help: the trait `std::ops::Try` is not implemented for `()`
11
11
= note: required by `std::ops::Try::from_error`
12
12
13
- error[E0277]: the trait bound `(): std::ops::Try` is not satisfied
13
+ error[E0277]: the `?` operator can only be applied to values that implement ` std::ops::Try`
14
14
--> $DIR/try-operator-on-main.rs:20:5
15
15
|
16
16
20 | ()?;
17
17
| ---
18
18
| |
19
- | the trait `std::ops::Try` is not implemented for `()`
19
+ | the `?` operator cannot be applied to type `()`
20
20
| in this macro invocation
21
21
|
22
+ = help: the trait `std::ops::Try` is not implemented for `()`
22
23
= note: required by `std::ops::Try::into_result`
23
24
24
25
error[E0277]: the trait bound `(): std::ops::Try` is not satisfied
@@ -29,15 +30,16 @@ error[E0277]: the trait bound `(): std::ops::Try` is not satisfied
29
30
|
30
31
= note: required by `try_trait_generic`
31
32
32
- error[E0277]: the trait bound `(): std::ops::Try` is not satisfied
33
+ error[E0277]: the `?` operator can only be applied to values that implement ` std::ops::Try`
33
34
--> $DIR/try-operator-on-main.rs:30:5
34
35
|
35
36
30 | ()?;
36
37
| ---
37
38
| |
38
- | the trait `std::ops::Try` is not implemented for `()`
39
+ | the `?` operator cannot be applied to type `()`
39
40
| in this macro invocation
40
41
|
42
+ = help: the trait `std::ops::Try` is not implemented for `()`
41
43
= note: required by `std::ops::Try::into_result`
42
44
43
45
error: aborting due to 4 previous errors
0 commit comments