Add Copy & int literal to test

This commit is contained in:
Jasper Bekkers 2020-07-24 12:30:32 +01:00
parent dd93edce2a
commit 0ba2d6deb1
No known key found for this signature in database
GPG Key ID: C59CE25F4DA6625D

View File

@ -10,5 +10,26 @@ pub trait Unsize<T: ?Sized> {}
#[lang = "coerce_unsized"]
pub trait CoerceUnsized<T> {}
#[lang = "copy"]
pub unsafe trait Copy {}
pub fn jasper() {}
unsafe impl Copy for bool {}
unsafe impl Copy for u8 {}
unsafe impl Copy for u16 {}
unsafe impl Copy for u32 {}
unsafe impl Copy for u64 {}
unsafe impl Copy for usize {}
unsafe impl Copy for i8 {}
unsafe impl Copy for i16 {}
unsafe impl Copy for i32 {}
unsafe impl Copy for isize {}
unsafe impl Copy for f32 {}
unsafe impl Copy for char {}
unsafe impl<'a, T: ?Sized> Copy for &'a T {}
unsafe impl<T: ?Sized> Copy for *const T {}
unsafe impl<T: ?Sized> Copy for *mut T {}
pub fn jasper() {
let _ktest = 23;
}