summaryrefslogtreecommitdiffstats
path: root/tests/ui/fmt/format-args-capture-issue-94010.rs
blob: bd03e9c93ae2a801187a75710abe22e29bb064bb (plain)
1
2
3
4
5
6
7
fn main() {
    const FOO: i32 = 123;
    println!("{foo:X}");
    //~^ ERROR: cannot find value `foo` in this scope
    println!("{:.foo$}", 0);
    //~^ ERROR: cannot find value `foo` in this scope
}