summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/doctest/no-run-flag-error.rs
blob: 4ead621482bfdd72c117961aa5d2d8ff552d0ecc (plain)
1
2
3
4
5
6
// 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() {}