Closed as duplicate of#50145
Closed as duplicate of#50145
Description
I tried this code:
#![no_std]
fn get_fract(f: f64) -> f64 {
f.fract()
}
I expected to see this happen: Compiles successfully
Instead, this happened: Fails to compile with E0599
"no method named fract
found for type f64
in the current scope"
Meta
rustc --version --verbose
:
rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: x86_64-unknown-linux-gnu
release: 1.83.0
LLVM version: 19.1.1