mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 14:37:50 +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`.
12 lines
263 B
Rust
12 lines
263 B
Rust
#![feature(prelude_import)]
|
|
#![no_std]
|
|
#[macro_use]
|
|
extern crate std;
|
|
#[prelude_import]
|
|
use ::std::prelude::rust_2015::*;
|
|
//@ pretty-compare-only
|
|
//@ pretty-mode:expanded
|
|
//@ pp-exact:dollar-crate.pp
|
|
|
|
fn main() { { ::std::io::_print(format_args!("rust\n")); }; }
|