]> git.lizzy.rs Git - rust.git/blob - tests/ui/reachable/expr_box.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / reachable / expr_box.rs
1 #![feature(box_syntax)]
2 #![allow(unused_variables)]
3 #![deny(unreachable_code)]
4
5 fn main() {
6     let x = box return; //~ ERROR unreachable
7     println!("hi");
8 }