1 // Regression test for <https://github.com/rust-lang/rust/issues/98002>.
3 // Keywords should not be generated in rustdoc JSON output and this test
6 #![feature(rustdoc_internals)]
10 // @!has - "$.index[*][?(@.name=='match')]"
11 // @has - "$.index[*][?(@.name=='foo')]"
13 #[doc(keyword = "match")]
17 // @!has - "$.index[*][?(@.name=='hello')]"
18 // @!has - "$.index[*][?(@.name=='bar')]"
19 #[doc(keyword = "hello")]