rust/tests/ui/try-block/try-block-in-while.rs
2024-02-16 20:02:50 +00:00

9 lines
135 B
Rust

//@ compile-flags: --edition 2018
#![feature(try_blocks)]
fn main() {
while try { false } {}
//~^ ERROR a `try` block must
}