You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![no_std]fnmain(){let a = 1.0f32;let _ = a.is_finite();}
doesn't compile. It reports:
error[E0599]: no method named `is_finite` found for type `f32` in the current scope
--> src/main.rs:5:15
|
5 | let _ = a.is_finite();
| ^^^^^^^^^
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope, perhaps add a `use` for it:
candidate #1: `use core::num::Float;`
but core::num::Float is not yet stable.
The implementations of the methods should probably be moved to core rather than staying in std.
The text was updated successfully, but these errors were encountered:
The following code
doesn't compile. It reports:
but
core::num::Float
is not yet stable.The implementations of the methods should probably be moved to
core
rather than staying instd
.The text was updated successfully, but these errors were encountered: