📜  没有货物的 rust 运行测试 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:28.890000             🧑  作者: Mango

代码示例1
// this will only compile the test cases in the main source..
// to run main source, you'll have to recompile main without --test flag

rustc --test source.rs