summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-23511.rs
blob: 7576ebb0305aaa5604cd2566397466e7c00ebea6 (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 {
    #![doc(primitive = "str")]

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