summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/issue-50599.rs
blob: 72238a59198a7245021df150d7948e3a6ffb0b18 (plain)
1
2
3
4
5
6
fn main() {
    const N: u32 = 1_000;
    const M: usize = (f64::from(N) * std::f64::LOG10_2) as usize; //~ ERROR cannot find value
    let mut digits = [0u32; M];
    //~^ constant
}