about summary refs log tree commit diff
path: root/tests/ui/unpretty/flattened-format-args.stdout
blob: 0792dc10e946b82ace7a49796e4c7a533140eb75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[attr = MacroUse {arguments: UseAll}]
extern crate std;
#[prelude_import]
use ::std::prelude::rust_2015::*;
//@ compile-flags: -Zunpretty=hir -Zflatten-format-args=yes
//@ check-pass
//@ edition: 2015

fn main() {
    let x = 1;
    // Should flatten to println!("a 123 b {x} xyz\n"):
    {
        ::std::io::_print({
                super let args = [format_argument::new_display(&x)];
                format_arguments::new_v1(&["a 123 b ", " xyz\n"], &args)
            });
    };
}