Skip to content

Glossary: System Design Basics in Rust

rustc --test

Compiles a Rust file as a test program that runs its `#[test]` functions.

Where the book teaches it

Related terms

#[cfg(test)] / #[test]rustc -O