mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
10 lines
242 B
Rust
10 lines
242 B
Rust
//@ 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"):
|
|
println!("a {} {}", format_args!("{} b {x}", 123), "xyz");
|
|
}
|