rust/tests/rustdoc-ui/no-run-flag-error.rs

7 lines
208 B
Rust
Raw Normal View History

// test the behavior of the --no-run flag without the --test flag
// compile-flags:-Z unstable-options --no-run --test-args=--test-threads=1
// error-pattern: the `--test` flag must be passed
pub fn f() {}