]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fmt/feature-gate-format-args-capture.rs
Merge commit '4c41a222ca5d1325fb4b6709395bd06e766cc042' into clippyup
[rust.git] / src / test / ui / fmt / feature-gate-format-args-capture.rs
1 fn main() {
2     format!("{foo}");                //~ ERROR: there is no argument named `foo`
3
4     // panic! doesn't hit format_args! unless there are two or more arguments.
5     panic!("{foo} {bar}", bar=1);    //~ ERROR: there is no argument named `foo`
6 }