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