Closed
Description
rustc 1.37.0 (eae3437 2019-08-13)
Repo: https://github.com/svenschmidt75/Rust
Commit: svenschmidt75/Rust@23ec342
When building, I get error message
Compiling ann v0.1.0 (/home/svenschmidt75/Develop/Rust/NeuralNetwork/lib/ann)
error[E0282]: type annotations needed
--> lib/ann/src/ann/cost_function.rs:25:9
|
25 | diff2.iter().sum() as f64 / 2.0
| ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for `S`
|
= note: type must be known at this point
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.
error: Could not compile `ann`.
warning: build failed, waiting for other jobs to finish...
error[E0282]: type annotations needed
--> lib/ann/src/ann/cost_function.rs:25:9
|
25 | diff2.iter().sum() as f64 / 2.0
| ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for `S`
|
= note: type must be known at this point
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.
error: Could not compile `ann`.
To learn more, run the command again with --verbose.
Process finished with exit code 101
Where does S come from?
Thanks,