]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-23511.rs
Rollup merge of #106407 - mejrs:attr_check, r=compiler-errors
[rust.git] / tests / rustdoc / issue-23511.rs
1 #![feature(rustc_attrs)]
2 #![feature(rustdoc_internals)]
3 #![no_std]
4
5 pub mod str {
6     #![doc(primitive = "str")]
7
8     impl str {
9         // @hasraw search-index.js foo
10         #[rustc_allow_incoherent_impl]
11         pub fn foo(&self) {}
12     }
13 }