about summary refs log tree commit diff
path: root/tests/ui/try-block/try-block-in-while.rs
blob: d6232546cea05998031ebc2b9665f5df96c31e66 (plain)
1
2
3
4
5
6
7
8
//@ edition: 2018

#![feature(try_blocks)]

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