mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
9f497008b0
This currently prints badly, with unclosed indentation.
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() {}
|