os-rust/tests/ui/rfcs/rfc-0000-never_patterns/check_place_is_initialized.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
199 B
Rust
Raw Normal View History

2024-02-08 00:09:31 +01:00
#![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
2024-02-08 00:09:31 +01:00
}