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