-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as_ref_mut.rs weird error using provided solution #2051
Comments
The feedback that you get is not about the exercise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
byusize
--> 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 forf64
= help: the following other types implement trait
Div<Rhs>
:<f64 as Div<&f64>>
<&'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 errorIt doesn't even match line 8 which is just "}".
The text was updated successfully, but these errors were encountered: