I'm using the
speculate package for writing tests in an rspec-like nature,
cargo test compiles and executes without issue, but I get this error otherwise when running
unresolved import `speculate` use of undeclared type or module `speculate
speculate listed as a dev dependency in my
Cargo.toml file. Rust Analyzer also picks it up as a syntax error. I've tried moving my tests to a completely separate file under a separate
/tests sub-directory which isn't included by any of the project's implementing files, yet the tests don't run in this case. My guess is because they're not included within the project's implementing files.