]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/format-args-capture-issue-94010.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[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 }