rust/tests/rustdoc/search-index-primitive-inhe...

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