"error[E0308]: mismatched types" when providing a default value for a f64
field
#1161
Labels
bug
Something isn't working
f64
field
#1161
I have the following code:
Which results in the following compilation error:
I'm not quite sure what the problem is, if I change the
min_rating
field's type to something likeu8
(and remove the.0
in the default value) it works fine.The text was updated successfully, but these errors were encountered: