]>
Commit | Line | Data |
---|---|---|
cc61c64b XL |
1 | #![allow(unused_variables)] |
2 | #![allow(unused_assignments)] | |
32a655c1 | 3 | #![allow(dead_code)] |
cc61c64b | 4 | #![deny(unreachable_code)] |
0531ce1d | 5 | #![feature(never_type, type_ascription)] |
cc61c64b XL |
6 | |
7 | fn a() { | |
8 | // the cast is unreachable: | |
ff7c6d11 | 9 | let x = {return} as !; //~ ERROR unreachable |
cc61c64b | 10 | } |
a7813a04 | 11 | |
32a655c1 | 12 | fn main() { } |