2021-11-26 17:03:16 -06:00
|
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
2022-03-18 11:02:32 -05:00
|
|
|
#![feature(no_core, lang_items, rustc_attrs, rustdoc_internals)]
|
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
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has prim_methods_local/index.html
|
|
|
|
//@ 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 12:23:29 -05:00
|
|
|
|
2021-07-10 21:25:36 -05:00
|
|
|
//! A [prim@`char`] and its [`char::len_utf8`].
|
|
|
|
|
2023-03-21 10:44:06 -05:00
|
|
|
#[rustc_doc_primitive = "char"]
|
2021-07-10 21:25:36 -05:00
|
|
|
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 {}
|