]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/intra-doc/auxiliary/my-core.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / rustdoc / intra-doc / auxiliary / my-core.rs
1 #![feature(no_core, lang_items, rustdoc_internals, rustc_attrs)]
2 #![no_core]
3 #![rustc_coherence_is_core]
4 #![crate_type="rlib"]
5
6 #[doc(primitive = "char")]
7 /// Some char docs
8 mod char {}
9
10 impl char {
11     pub fn len_utf8(self) -> usize {
12         42
13     }
14 }
15
16 #[lang = "sized"]
17 pub trait Sized {}
18
19 #[lang = "clone"]
20 pub trait Clone: Sized {}
21
22 #[lang = "copy"]
23 pub trait Copy: Clone {}