rust/tests/ui/unpretty/flattened-format-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
222 B
Rust
Raw Normal View History

// 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");
}