rust/src/test/ui/try-block/try-block-in-while.rs

8 lines
160 B
Rust
Raw Normal View History

// compile-flags: --edition 2018
#![feature(try_blocks)]
fn main() {
while try { false } {} //~ ERROR expected expression, found reserved keyword `try`
}