rust 测试如何打印 println 输出结果
cargo test -- --nocapture
or
rustc --test main.rs; ./main
or (my favorite)
cargo watch “test -- --nocapture”
https://medium.com/@ericdreichert/how-to-print-during-rust-tests-619bdc7ccebc
转载请注明原文链接:https://www.cnblogs.com/itfanr/p/17440950.html
公众号:小弧光黑板报