diff options
| author | QuietMisdreavus <grey@quietmisdreavus.net> | 2019-02-21 16:02:56 -0600 |
|---|---|---|
| committer | QuietMisdreavus <grey@quietmisdreavus.net> | 2019-02-28 16:11:21 -0600 |
| commit | 63bdd29ef4e744d6cacc2373b3b317eeebdf2a07 (patch) | |
| tree | 30c74a89b6c0a815b0ebd9898276416671bfd59e /src/test/rustdoc-ui/coverage/exotic.rs | |
| parent | 3ce19b4a2c062a7a269bd2783a4a441d515b64c8 (diff) | |
| download | rust-63bdd29ef4e744d6cacc2373b3b317eeebdf2a07.tar.gz rust-63bdd29ef4e744d6cacc2373b3b317eeebdf2a07.zip | |
add tests for doc coverage
Diffstat (limited to 'src/test/rustdoc-ui/coverage/exotic.rs')
| -rw-r--r-- | src/test/rustdoc-ui/coverage/exotic.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/coverage/exotic.rs b/src/test/rustdoc-ui/coverage/exotic.rs new file mode 100644 index 00000000000..b4adf45b90b --- /dev/null +++ b/src/test/rustdoc-ui/coverage/exotic.rs @@ -0,0 +1,15 @@ +// compile-flags:-Z unstable-options --show-coverage +// compile-pass + +#![feature(doc_keyword)] + +//! the features only used in std also have entries in the table, so make sure those get pulled out +//! properly as well + +/// woo, check it out, we can write our own primitive docs lol +#[doc(primitive="unit")] +mod prim_unit {} + +/// keywords? sure, pile them on +#[doc(keyword="where")] +mod where_keyword {} |
