rust/src/test/ui/issues/issue-50599.rs
2018-12-25 21:08:33 -07:00

7 lines
217 B
Rust

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];
//~^ ERROR evaluation of constant value failed
}