fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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