summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-23511.rs
blob: 21d02842431d0d02b98952b99cff374689d3d165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(rustc_attrs)]
#![feature(rustdoc_internals)]
#![no_std]

pub mod str {
    #![rustc_doc_primitive = "str"]

    impl str {
        // @hasraw search-index.js foo
        #[rustc_allow_incoherent_impl]
        pub fn foo(&self) {}
    }
}