2020-07-30 12:38:55 -05:00
|
|
|
#![deny(broken_intra_doc_links)]
|
2020-07-06 21:35:07 -05:00
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![no_core]
|
2020-07-08 10:20:43 -05:00
|
|
|
#![crate_type = "rlib"]
|
2020-07-06 21:35:07 -05:00
|
|
|
|
2020-07-07 12:39:10 -05:00
|
|
|
|
2020-11-28 19:25:41 -06:00
|
|
|
// @has prim_methods_local/index.html
|
2021-07-10 21:25:36 -05:00
|
|
|
// @has - '//*[@id="main"]//a[@href="primitive.char.html"]' 'char'
|
|
|
|
// @has - '//*[@id="main"]//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`].
|
|
|
|
|
|
|
|
#[doc(primitive = "char")]
|
|
|
|
mod char {}
|
2020-07-06 21:35:07 -05:00
|
|
|
|
|
|
|
#[lang = "char"]
|
|
|
|
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 {}
|