diff options
Diffstat (limited to 'src/test/rustdoc-ui/generate-link-to-definition-opt.rs')
-rw-r--r-- | src/test/rustdoc-ui/generate-link-to-definition-opt.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/generate-link-to-definition-opt.rs b/src/test/rustdoc-ui/generate-link-to-definition-opt.rs new file mode 100644 index 000000000..8f4f561b4 --- /dev/null +++ b/src/test/rustdoc-ui/generate-link-to-definition-opt.rs @@ -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() {} |