mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00

Use `splice` to avoid shifting the other items twice. Put `extern crate std;` first so it's already resolved when we resolve `::std::prelude::rust_20XX`.
18 lines
358 B
Rust
18 lines
358 B
Rust
#![feature(prelude_import)]
|
|
#![no_std]
|
|
//@ pretty-mode:expanded
|
|
//@ pp-exact:never-pattern.pp
|
|
//@ only-x86_64
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(never_patterns)]
|
|
#![feature(never_type)]
|
|
#[macro_use]
|
|
extern crate std;
|
|
#[prelude_import]
|
|
use ::std::prelude::rust_2015::*;
|
|
|
|
fn f(x: Result<u32, !>) { _ = match x { Ok(x) => x, Err(!) , }; }
|
|
|
|
fn main() {}
|