Closed bvmcode closed 1 year ago
Here is my repo https://github.com/bvmcode/rust-email-newsletter
I am following along with the book through 3.4.3 and when running cargo test I am getting the error:
cargo test
error[E0432]: unresolved import `newsletter::main` --> tests\health_check.rs:1:5 | 1 | use newsletter::main; | ^^^^^
Thanks in advance
You cannot import a function defined in the binary (i.e. main.rs)—keep reading the chapter and it'll show you how to refactor to move it into the library!
main.rs
Thank you @LukeMathWalker
Here is my repo https://github.com/bvmcode/rust-email-newsletter
I am following along with the book through 3.4.3 and when running
cargo test
I am getting the error:Thanks in advance