]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/closure-bang.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / lint / dead-code / closure-bang.rs
1 // ignore-test FIXME(#20574)
2
3 #![deny(unreachable_code)]
4
5 fn main() {
6     let x = || panic!();
7     x();
8     println!("Foo bar"); //~ ERROR: unreachable statement
9 }