mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-27 12:48:20 +00:00
17 lines
259 B
Rust
17 lines
259 B
Rust
//@ pretty-mode:expanded
|
|
//@ pp-exact:never-pattern.pp
|
|
//@ only-x86_64
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(never_patterns)]
|
|
#![feature(never_type)]
|
|
|
|
fn f(x: Result<u32, !>) {
|
|
_ = match x {
|
|
Ok(x) => x,
|
|
Err(!),
|
|
};
|
|
}
|
|
|
|
fn main() {}
|