rust/src/test/ui/fmt/format-args-capture-issue-93378.rs

8 lines
184 B
Rust
Raw Normal View History

2022-01-27 23:51:11 +01:00
fn main() {
let a = "a";
let b = "b";
println!("{a} {b} {} {} {c} {}", c = "c");
//~^ ERROR: invalid reference to positional arguments 1 and 2 (there is 1 argument)
}