summary refs log tree commit diff
path: root/src/test/ui/try-block/try-block-in-while.stderr
blob: ac41ddfd8c042c13b3663b22525126839c133b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0277]: the trait bound `bool: std::ops::Try` is not satisfied
  --> $DIR/try-block-in-while.rs:6:15
   |
LL |     while try { false } {}
   |               ^^^^^^^^^ the trait `std::ops::Try` is not implemented for `bool`
   |
   = note: required by `std::ops::Try::from_ok`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.