summaryrefslogtreecommitdiffstats
path: root/tests/ui/reachable/expr_box.rs
blob: 00328ea013139fb964563e2a566d9261d4168186 (plain)
1
2
3
4
5
6
7
8
#![feature(box_syntax)]
#![allow(unused_variables)]
#![deny(unreachable_code)]

fn main() {
    let x = box return; //~ ERROR unreachable
    println!("hi");
}