blob: a8fe8da0024722466a222f9292e22b5987f2c6af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// compile-flags: -Zunpretty=hir -Zflatten-format-args=yes
// check-pass
fn main() {
let x = 1;
// Should flatten to println!("a 123 b {x} xyz\n"):
{
::std::io::_print(<#[lang = "format_arguments"]>::new_v1(&["a 123 b ",
" xyz\n"],
&[<#[lang = "format_argument"]>::new_display(&x)]));
};
}
|