diff options
Diffstat (limited to 'src/test/ui/try-operator-on-main.rs')
| -rw-r--r-- | src/test/ui/try-operator-on-main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/try-operator-on-main.rs b/src/test/ui/try-operator-on-main.rs index 3372fac5707..602c3c5c359 100644 --- a/src/test/ui/try-operator-on-main.rs +++ b/src/test/ui/try-operator-on-main.rs @@ -10,7 +10,6 @@ fn main() { // a non-`Try` type on a non-`Try` fn ()?; //~ ERROR the `?` operator can only - //~^ ERROR the trait bound `(): std::ops::Try` is not satisfied // an unrelated use of `Try` try_trait_generic::<()>(); //~ ERROR the trait bound @@ -20,8 +19,7 @@ fn main() { fn try_trait_generic<T: Try>() -> T { // and a non-`Try` object on a `Try` fn. - ()?; //~ ERROR the trait bound `(): std::ops::Try` is not satisfied - //~^ ERROR the trait bound `(): std::ops::Try` is not satisfied + ()?; //~ ERROR the `?` operator can only be applied to values that implement `std::ops::Try` loop {} } |
