33 lines
633 B
Rust
Raw Normal View History

2017-09-08 15:55:28 -07:00
#![feature(no_core, lang_items)]
2020-02-03 20:12:42 +00:00
#![crate_type = "rlib"]
2017-09-08 15:55:28 -07:00
#![no_core]
pub static STATIC_BOOL: bool = true;
pub static mut STATIC_MUT_BOOL: bool = true;
const CONST_BOOL: bool = true;
pub static CONST_BOOL_REF: &'static bool = &CONST_BOOL;
#[lang = "sized"]
trait Sized {}
#[lang = "copy"]
trait Copy {}
impl Copy for bool {}
impl Copy for &bool {}
2017-09-08 15:55:28 -07:00
#[lang = "freeze"]
trait Freeze {}
2020-02-03 20:12:42 +00:00
// No `UnsafeCell`, so everything is `Freeze`.
impl<T: ?Sized> Freeze for T {}
2017-09-08 15:55:28 -07:00
#[lang = "sync"]
trait Sync {}
impl Sync for bool {}
impl Sync for &'static bool {}
2020-02-03 20:12:42 +00:00
#[lang = "drop_in_place"]
pub unsafe fn drop_in_place<T: ?Sized>(_: *mut T) {}