I am trying to initialize a static variable at runtime using lazy_static
crate. But I'm getting no rules expected the token E1
error while compiling. This is the link lazy_static I followed
use lazy_static::lazy_static;
lazy_static! {
static E1: f64 = (1.0 - f64::sqrt(1.5)) / (1.0 + f64::sqrt(0.5));
}
fn main() {
println!("{}", E1);
}