]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/min-global-align/min_global_align.rs
Rollup merge of #107692 - Swatinem:printsizeyield, r=compiler-errors
[rust.git] / tests / run-make-fulldeps / min-global-align / min_global_align.rs
1 #![feature(no_core, lang_items)]
2 #![crate_type = "rlib"]
3 #![no_core]
4
5 pub static STATIC_BOOL: bool = true;
6
7 pub static mut STATIC_MUT_BOOL: bool = true;
8
9 const CONST_BOOL: bool = true;
10 pub static CONST_BOOL_REF: &'static bool = &CONST_BOOL;
11
12 #[lang = "sized"]
13 trait Sized {}
14
15 #[lang = "copy"]
16 trait Copy {}
17 impl Copy for bool {}
18 impl Copy for &bool {}
19
20 #[lang = "freeze"]
21 trait Freeze {}
22
23 // No `UnsafeCell`, so everything is `Freeze`.
24 impl<T: ?Sized> Freeze for T {}
25
26 #[lang = "sync"]
27 trait Sync {}
28 impl Sync for bool {}
29 impl Sync for &'static bool {}
30
31 #[lang = "drop_in_place"]
32 pub unsafe fn drop_in_place<T: ?Sized>(_: *mut T) {}