rust/tests/rustdoc/search-index-primitive-inherent-method-23511.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
329 B
Rust
Raw Normal View History

2022-03-18 16:02:32 +00:00
#![feature(rustc_attrs)]
#![feature(rustdoc_internals)]
#![no_std]
2023-10-04 20:04:45 +00:00
// https://github.com/rust-lang/rust/issues/23511
#![crate_name="issue_23511"]
pub mod str {
2023-03-21 15:44:06 +00:00
#![rustc_doc_primitive = "str"]
impl str {
// @hasraw search-index.js foo
2022-03-18 16:02:32 +00:00
#[rustc_allow_incoherent_impl]
pub fn foo(&self) {}
}
}