diff options
Diffstat (limited to 'src/test/rustdoc-json/keyword.rs')
-rw-r--r-- | src/test/rustdoc-json/keyword.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/rustdoc-json/keyword.rs b/src/test/rustdoc-json/keyword.rs deleted file mode 100644 index 3446b212c..000000000 --- a/src/test/rustdoc-json/keyword.rs +++ /dev/null @@ -1,20 +0,0 @@ -// Regression test for <https://github.com/rust-lang/rust/issues/98002>. - -// Keywords should not be generated in rustdoc JSON output and this test -// ensures it. - -#![feature(rustdoc_internals)] -#![no_std] - -// @!has "$.index[*][?(@.name=='match')]" -// @has "$.index[*][?(@.name=='foo')]" - -#[doc(keyword = "match")] -/// this is a test! -pub mod foo {} - -// @!has "$.index[*][?(@.name=='hello')]" -// @!has "$.index[*][?(@.name=='bar')]" -#[doc(keyword = "hello")] -/// hello -mod bar {} |