『プログラミング言語Rust 公式ガイド』をやっていて詰まった。
調べてみると、
To fix compilation you just need remove #[cfg(test)] from here:
# [cfg(test)]
pub mod client;
because of with #[cfg(test)] at the top of pub mod client, you client
module compiles only if build tests via cargo test
Ooh...
# [cfg(test)]をつけているとテストをビルドするときだけモジュールがコンパイルされるらしい。
なるほど。