rust/src/test/rustdoc/issue-23511.rs
Noah Lev 13d53273f8 Rename @hastext to @hasraw (same for matches)
I think `@hasraw` is slightly clearer than `@hastext` since it is
actually matching against the raw HTML, not the text nodes.
2022-08-13 00:37:13 -04:00

13 lines
244 B
Rust

#![feature(rustc_attrs)]
#![feature(rustdoc_internals)]
#![no_std]
pub mod str {
#![doc(primitive = "str")]
impl str {
// @hasraw search-index.js foo
#[rustc_allow_incoherent_impl]
pub fn foo(&self) {}
}
}