`the trait bound f32: From<f64> is not satisfied` error on nightly
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 67
Description
**Describe the bug**
While compiling `epaint`, this error occurs:
```
error[E0277]: the trait bound `f32: From` is not satisfied
--> epaint-0.26.2/src/tessellator.rs:1816:34
|
1816 | let stroke = Stroke::new(2.0, Color32::from_rgb(150, 255, 150));
| ----------- ^^^ the trait `From` is not implemented for `f32`, which is required by `{float}: Into`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `From`:
>
>
>
>
>
>
= note: required for `f64` to implement `Into`
note: required by a bound in `stroke::Stroke::new`
--> epaint-0.26.2/src/stroke.rs:23:28
|
23 | pub fn new(width: impl Into, color: impl Into) -> Self {
| ^^^^^^^^^ required by this bound in `Stroke::new`
```
**To Reproduce**
Steps to reproduce the behavior:
1. Use latest nightly rust
2. Build `epaint`
Contributor guide
Assessment
This issue has not been assessed yet.