mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
7 lines
184 B
Rust
7 lines
184 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];
|
|
//~^ constant
|
|
}
|