2020-07-06 19:35:07 -07:00
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
#![no_core]
|
2020-07-08 08:20:43 -07:00
|
|
|
#![crate_type="rlib"]
|
2020-07-06 19:35:07 -07: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 {}
|