2022-03-18 11:02:32 -05:00
|
|
|
#![feature(no_core, lang_items, rustdoc_internals, rustc_attrs)]
|
2020-07-06 21:35:07 -05:00
|
|
|
#![no_core]
|
2022-03-18 11:02:32 -05:00
|
|
|
#![rustc_coherence_is_core]
|
2020-07-08 10:20:43 -05:00
|
|
|
#![crate_type="rlib"]
|
2020-07-06 21:35:07 -05:00
|
|
|
|
2021-07-10 21:25:36 -05:00
|
|
|
#[doc(primitive = "char")]
|
|
|
|
/// Some char docs
|
|
|
|
mod char {}
|
|
|
|
|
2020-07-06 21:35:07 -05:00
|
|
|
impl char {
|
|
|
|
pub fn len_utf8(self) -> usize {
|
|
|
|
42
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
pub trait Sized {}
|
|
|
|
|
|
|
|
#[lang = "clone"]
|
|
|
|
pub trait Clone: Sized {}
|
|
|
|
|
|
|
|
#[lang = "copy"]
|
|
|
|
pub trait Copy: Clone {}
|