Skip to content

Instantly share code, notes, and snippets.

@saethlin
Created August 25, 2017 01:20
Show Gist options
  • Save saethlin/52712847327e73082c17fbb5b813149f to your computer and use it in GitHub Desktop.
Save saethlin/52712847327e73082c17fbb5b813149f to your computer and use it in GitHub Desktop.
error[E0277]: the trait bound `({float}, ndarray::ArrayBase<ndarray::OwnedRepr<_>, ndarray::Dim<[usize; 1]>>): std::ops::Fn<()>` is not satisfied
--> src/star.rs:76:73
|
76 | let (flux_quiet, integrated_ccf) = limb_integrals.zip(profiles).fold(
| ^^^^ the trait `std::ops::Fn<()>` is not implemented for `({float}, ndarray::ArrayBase<ndarray::OwnedRepr<_>, ndarray::Dim<[usize; 1]>>)`
error[E0277]: the trait bound `({float}, ndarray::ArrayBase<ndarray::OwnedRepr<_>, ndarray::Dim<[usize; 1]>>): std::ops::FnOnce<()>` is not satisfied
--> src/star.rs:76:73
|
76 | let (flux_quiet, integrated_ccf) = limb_integrals.zip(profiles).fold(
| ^^^^ the trait `std::ops::FnOnce<()>` is not implemented for `({float}, ndarray::ArrayBase<ndarray::OwnedRepr<_>, ndarray::Dim<[usize; 1]>>)`
error[E0308]: mismatched types
--> src/star.rs:76:13
|
76 | let (flux_quiet, integrated_ccf) = limb_integrals.zip(profiles).fold(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `rayon::iter::Fold`, found tuple
|
= note: expected type `rayon::iter::Fold<rayon::iter::Zip<rayon::iter::Map<rayon::vec::IntoIter<f64>, [closure@src/star.rs:55:18: 67:14 sqrt:_, limb_linear:_, limb_quadratic:_]>, rayon::iter::Map<rayon::vec::IntoIter<f64>, [closure@src/star.rs:72:18: 74:14 profile_quiet:_, equatorial_velocity:_]>>, ({float}, ndarray::ArrayBase<ndarray::OwnedRepr<_>, ndarray::Dim<[usize; 1]>>), [closure@src/star.rs:83:13: 86:14]>`
found type `(_, _)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment