2022-03-18 17:02:32 +01:00
|
|
|
#![feature(no_core, lang_items, rustdoc_internals, rustc_attrs)]
|
2020-07-06 19:35:07 -07:00
|
|
|
#![no_core]
|
2022-03-18 17:02:32 +01:00
|
|
|
#![rustc_coherence_is_core]
|
2020-07-08 08:20:43 -07:00
|
|
|
#![crate_type="rlib"]
|
2020-07-06 19:35:07 -07:00
|
|
|
|
2023-03-21 16:44:06 +01:00
|
|
|
#[rustc_doc_primitive = "char"]
|
2021-07-10 22:25:36 -04:00
|
|
|
/// Some char docs
|
|
|
|
mod char {}
|
|
|
|
|
2020-07-06 19:35:07 -07: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 {}
|