diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-04 14:46:04 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-04 14:46:04 +0100 |
| commit | 0eff07ee4ec22e7f83462b4b1a42dc04e9d5570b (patch) | |
| tree | 2d0afe38c907955885e52714e08531f6b45e63d6 /tests/rustdoc-ui/show-coverage-json.rs | |
| parent | e9161db5b55ee5398e10a6806cb62d67e725278c (diff) | |
| download | rust-0eff07ee4ec22e7f83462b4b1a42dc04e9d5570b.tar.gz rust-0eff07ee4ec22e7f83462b4b1a42dc04e9d5570b.zip | |
Add UI regressions tests for rustdoc `--show-coverage` option
Diffstat (limited to 'tests/rustdoc-ui/show-coverage-json.rs')
| -rw-r--r-- | tests/rustdoc-ui/show-coverage-json.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/show-coverage-json.rs b/tests/rustdoc-ui/show-coverage-json.rs new file mode 100644 index 00000000000..3851e34fe35 --- /dev/null +++ b/tests/rustdoc-ui/show-coverage-json.rs @@ -0,0 +1,13 @@ +//@ compile-flags: -Z unstable-options --show-coverage --output-format=json +//@ check-pass + +mod bar { + /// a + /// + /// ``` + /// let x = 0; + /// ``` + pub struct Foo; +} + +pub use bar::Foo; |
