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
的名字是有特殊含义的。
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
的名字是有特殊含义的。
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo