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
Rollup merge of rust-lang#58710 - EdorianDark:master, r=sfackler
Add clamp for ranges. Implements rust-lang#44095
Does not build, but I can not figure out why.
Either I import ops and get the error:
``
error: unused import: `core::ops::RangeInclusive`
--> src/libstd/f64.rs:16:5
|
16 | use core::ops::RangeInclusive;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
``
or I do not import and get another error
``
error[E0412]: cannot find type `RangeInclusive` in this scope=======> ] 35/36: std
--> src/libstd/f64.rs:928:32
|
928 | pub fn clamp(self, range : RangeInclusive<Self>) -> Self
| ^^^^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
12 | use core::ops::RangeInclusive;
|
``
If it would build, could it get merged?
Can someone figure out, why it doesn't build?
0 commit comments