mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
9 lines
224 B
Rust
9 lines
224 B
Rust
//@ 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"):
|
|
println!("a {} {}", format_args!("{} b {x}", 123), "xyz");
|
|
}
|