2020-07-29 22:21:26 +00:00
|
|
|
#![deny(intra_doc_link_resolution_failures)]
|
2020-07-07 02:35:07 +00:00
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![no_core]
|
2020-07-08 15:20:43 +00:00
|
|
|
#![crate_type = "rlib"]
|
2020-07-07 02:35:07 +00:00
|
|
|
|
2020-07-07 17:39:10 +00:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
2020-07-07 17:23:29 +00:00
|
|
|
// @has intra_link_prim_methods_local/index.html
|
|
|
|
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html"]' 'char'
|
|
|
|
// @has - '//*[@id="main"]//a[@href="https://doc.rust-lang.org/nightly/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
|
|
|
|
|
2020-07-07 02:35:07 +00:00
|
|
|
//! A [`char`] and its [`char::len_utf8`].
|
|
|
|
|
|
|
|
#[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 {}
|