diff options
Diffstat (limited to 'src/test/ui/try-block/try-block-in-while.rs')
| -rw-r--r-- | src/test/ui/try-block/try-block-in-while.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/try-block/try-block-in-while.rs b/src/test/ui/try-block/try-block-in-while.rs index 98af796dd37..33d27236519 100644 --- a/src/test/ui/try-block/try-block-in-while.rs +++ b/src/test/ui/try-block/try-block-in-while.rs @@ -3,5 +3,6 @@ #![feature(try_blocks)] fn main() { - while try { false } {} //~ ERROR expected expression, found reserved keyword `try` + while try { false } {} + //~^ ERROR the trait bound `bool: std::ops::Try` is not satisfied } |
