2023-03-16 06:16:27 -05:00
|
|
|
#[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"):
|
|
|
|
{
|
2023-12-22 22:02:17 -06:00
|
|
|
::std::io::_print(format_arguments::new_v1(&["a 123 b ",
|
|
|
|
" xyz\n"], &[format_argument::new_display(&x)]));
|
2023-03-16 06:16:27 -05:00
|
|
|
};
|
|
|
|
}
|