]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/format-args-capture-issue-94010.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / fmt / format-args-capture-issue-94010.rs
1 fn main() {
2     const FOO: i32 = 123;
3     println!("{foo:X}");
4     //~^ ERROR: cannot find value `foo` in this scope
5     println!("{:.foo$}", 0);
6     //~^ ERROR: cannot find value `foo` in this scope
7 }