blob: 4294a18ba440f80d0156c807ac59ed0c647090a5 [file] [log] [blame]
#![feature(never_type, never_type_fallback)]
#![feature(min_exhaustive_patterns)]
#![allow(unreachable_code)]
#![deny(unreachable_patterns)]
enum Void {}
impl Iterator for Void {
type Item = Void;
fn next(&mut self) -> Option<Void> {
None
}
}
fn main() {
for _ in unimplemented!() as Void {}
//~^ ERROR unreachable pattern
}