rust unresolved import `minigrep`

阅读量: searchstar 2021-05-14 16:32:56
Categories: Tags:

rust The book练习题minigrep:
https://doc.rust-lang.org/book/ch12-03-improving-error-handling-and-modularity.html

cargo run

报错:unresolved import minigrep
原因是把lib.rs命名成run.rs了。改回lib.rs就好了。这说明lib.rs的名字是有特殊含义的。