2019-12-11 09:51:28 -05:00
|
|
|
#![feature(never_type)]
|
2017-03-21 09:41:41 -04:00
|
|
|
#![allow(unused_variables)]
|
|
|
|
#![allow(unused_assignments)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
#![deny(unreachable_code)]
|
|
|
|
|
|
|
|
fn foo() {
|
2021-11-21 19:30:17 -08:00
|
|
|
let x: ! = * { return; }; //~ ERROR unreachable
|
|
|
|
//~| ERROR type `!` cannot be dereferenced
|
2017-03-21 09:41:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|