fn main() {
for constant in std::f64::consts::iter() {
println!("{constant}");
}
}
wanted to iterate over all constant values in there but i cant (edited)-fsigned-char
cmake .. -DCMAKE_CXX_FLAGS="-fsigned-char" -DCMAKE_C_FLAGS="-fsigned-char"
let x = String::from("bucket");
let static_ref: &'static mut str = x.leak();
assert_eq!(static_ref, "bucket");
const x: string = "bucket";
let x = String::from("bucket");
let static_ref: &'static mut str = x.leak();
assert_eq!(static_ref, "bucket");