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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
224 B
Rust
Raw Permalink 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
pub fn f() {}
//~? ERROR the `--test` flag must be passed to enable `--no-run`