Trait not implemented... while it is!

โš“ rust    ๐Ÿ“… 2025-06-09    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 2      

surdeus

In a library, a trait is defined and implemented on ndarray::Array1: rust-sundials/src/vector/mod.rs at master ยท Chris00/rust-sundials ยท GitHub

Using the library (with the right feature) used to work but now (latest compiler, edition 2024), I have the error:

the trait `NVectorOps` is not implemented for `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>`

I also tried to implement the trait on the expanded type to no avail. Any help will be appreciated.

2 posts - 2 participants

Read full topic

๐Ÿท๏ธ rust_feed