I copied the solution and pasted it over my solution because I kept getting an odd error and I still get this error:
error[E0277]: cannot divide f64 by usize
--> exercises/23_conversions/using_as.rs:8:11
8
total / values.len()
^ no implementation for f64 / usize
= help: the trait Div<usize> is not implemented for f64
= help: the following other types implement trait Div<Rhs>:
>
<&'a f64 as Div>
<&f64 as Div<&f64>>
For more information about this error, try `rustc --explain E0277`.
error: could not compile `exercises` (bin "using_as") due to 1 previous error
It doesn't even match line 8 which is just "}".
The feedback that you get is not about the exercise as_ref_mut but about using_as (shown in the path exercises/23_conversions/using_as.rs:8:11 and at the end bin "using_as").
I copied the solution and pasted it over my solution because I kept getting an odd error and I still get this error:
f64
byusize
--> exercises/23_conversions/using_as.rs:8:11f64 / usize
= help: the trait
Div<usize>
is not implemented forf64
= help: the following other types implement traitDiv<Rhs>
: