summaryrefslogtreecommitdiffstats
path: root/tests/ui/try-block/try-block-in-while.rs
blob: 69793df525e7714f8d154b58e23d75b129391f29 (plain)
1
2
3
4
5
6
7
8
// compile-flags: --edition 2018

#![feature(try_blocks)]

fn main() {
    while try { false } {}
    //~^ ERROR a `try` block must
}