But how would you print {x} in 1.57? I doubt you would escape it with {{ in that release. Maybe \{ then? Does that still work in 1.58?
This still smells fishy to me, but I need to dig deeper.
pub fn main() { let y = 4; println!("{x}", x=y); }
pub fn main() { let x = 4; // unused println!("{{x}}"); }
pub fn main() { let x = 4; // unused println!("{x}"); }
error: there is no argument named `x` --> <source>:3:15 | 3 | println!("{x}"); | ^^^
You would. Brackets were still escaping in that release because you would of course still do `println!("{}", x);`
But how would you print {x} in 1.57? I doubt you would escape it with {{ in that release. Maybe \{ then? Does that still work in 1.58?
This still smells fishy to me, but I need to dig deeper.