@@ -10,15 +10,16 @@ error[E0277]: the `?` operator can only be used in a function that returns `Resu
1010 = help: the trait `std::ops::Try` is not implemented for `()`
1111 = note: required by `std::ops::Try::from_error`
1212
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`
1414 --> $DIR/try-operator-on-main.rs:20:5
1515 |
161620 | ()?;
1717 | ---
1818 | |
19- | the trait `std::ops::Try` is not implemented for `()`
19+ | the `?` operator cannot be applied to type `()`
2020 | in this macro invocation
2121 |
22+ = help: the trait `std::ops::Try` is not implemented for `()`
2223 = note: required by `std::ops::Try::into_result`
2324
2425error[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
2930 |
3031 = note: required by `try_trait_generic`
3132
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`
3334 --> $DIR/try-operator-on-main.rs:30:5
3435 |
353630 | ()?;
3637 | ---
3738 | |
38- | the trait `std::ops::Try` is not implemented for `()`
39+ | the `?` operator cannot be applied to type `()`
3940 | in this macro invocation
4041 |
42+ = help: the trait `std::ops::Try` is not implemented for `()`
4143 = note: required by `std::ops::Try::into_result`
4244
4345error: aborting due to 4 previous errors
0 commit comments