rust/tests/ui/rfcs/rfc-0000-never_patterns/check_place_is_initialized.rs
2024-05-04 16:30:01 +02:00

13 lines
199 B
Rust

#![feature(never_patterns)]
#![allow(incomplete_features)]
enum Void {}
fn main() {}
fn anything<T>() -> T {
let x: Void;
match x { ! }
//~^ ERROR used binding `x` isn't initialized
}