blob: 76a7306b9d9e01c6fcb2394fc5f346ea2b205fa1 [file] [log] [blame]
#![allow(unused_variables)]
#![allow(unused_assignments)]
#![allow(dead_code)]
#![deny(unreachable_code)]
#![feature(type_ascription)]
fn a() {
// the cast is unreachable:
let x = {return} as !; //~ ERROR unreachable
}
fn main() { }