2021-11-26 23:03:16 +00:00
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
2022-03-18 16:02:32 +00:00
|
|
|
#![feature(no_core, lang_items, rustc_attrs, rustdoc_internals)]
|
2020-07-07 02:35:07 +00:00
|
|
|
#![no_core]
|
2022-03-18 16:02:32 +00:00
|
|
|
#![rustc_coherence_is_core]
|
2020-07-08 15:20:43 +00:00
|
|
|
#![crate_type = "rlib"]
|
2020-07-07 02:35:07 +00:00
|
|
|
|
2020-11-29 01:25:41 +00:00
|
|
|
// @has prim_methods_local/index.html
|
2021-11-29 16:14:05 +00:00
|
|
|
// @has - '//*[@id="main-content"]//a[@href="primitive.char.html"]' 'char'
|
|
|
|
// @has - '//*[@id="main-content"]//a[@href="primitive.char.html#method.len_utf8"]' 'char::len_utf8'
|
2020-07-07 17:23:29 +00:00
|
|
|
|
2021-07-11 02:25:36 +00:00
|
|
|
//! A [prim@`char`] and its [`char::len_utf8`].
|
|
|
|
|
|
|
|
#[doc(primitive = "char")]
|
|
|
|
mod char {}
|
2020-07-07 02:35:07 +00: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 {}
|