Захват имён в panic! и assert!

Изменения в новых версиях / Rust 1.58

let path = "/etc/app.conf";
let width = 12;

// *** было: ***
panic!("cannot read the file {}", path);
assert!(width > 0, "the width {} is wrong", width);
let line = format!("{:>1$}", path, width);

// *** в версии 1.58: ***
panic!("cannot read the file {path}");
assert!(width > 0, "the width {width} is wrong");
let line = format!("{path:>width$}");   // ширина тоже задаётся по имени