1
Fork 0

Move some rustdoc-ui tests to subdirectories

This commit is contained in:
jyn 2023-04-29 04:08:33 -05:00
parent 572c0d553f
commit 5fa975142f
145 changed files with 40 additions and 29 deletions

View file

@ -0,0 +1,6 @@
// This test purpose is to check that the "--generate-link-to-definition"
// option can only be used on nightly.
// compile-flags: --generate-link-to-definition
pub fn f() {}

View file

@ -0,0 +1,2 @@
error: the `-Z unstable-options` flag must also be passed to enable the flag `generate-link-to-definition`

View file

@ -0,0 +1,6 @@
// This test purpose is to check that the "--generate-link-to-definition"
// option can only be used with HTML generation.
// compile-flags: -Zunstable-options --generate-link-to-definition --output-format json
pub fn f() {}

View file

@ -0,0 +1,2 @@
error: --generate-link-to-definition option can only be used with HTML output format

View file

@ -0,0 +1,6 @@
// This test purpose is to check that the "--generate-link-to-definition"
// option can only be used with HTML generation.
// compile-flags: -Zunstable-options --generate-link-to-definition --show-coverage
pub fn f() {}

View file

@ -0,0 +1,2 @@
error: --generate-link-to-definition option can only be used with HTML output format