2019-07-26 21:54:25 +00:00
|
|
|
// run-pass
|
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2017-10-23 03:01:00 +00:00
|
|
|
let f = 1_usize as *const String;
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", f as isize);
|
|
|
|
println!("{:?}", f as usize);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", f as i8);
|
|
|
|
println!("{:?}", f as i16);
|
|
|
|
println!("{:?}", f as i32);
|
|
|
|
println!("{:?}", f as i64);
|
|
|
|
println!("{:?}", f as u8);
|
|
|
|
println!("{:?}", f as u16);
|
|
|
|
println!("{:?}", f as u32);
|
|
|
|
println!("{:?}", f as u64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1 as isize);
|
|
|
|
println!("{:?}", 1 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1 as i8);
|
|
|
|
println!("{:?}", 1 as i16);
|
|
|
|
println!("{:?}", 1 as i32);
|
|
|
|
println!("{:?}", 1 as i64);
|
|
|
|
println!("{:?}", 1 as u8);
|
|
|
|
println!("{:?}", 1 as u16);
|
|
|
|
println!("{:?}", 1 as u32);
|
|
|
|
println!("{:?}", 1 as u64);
|
2015-01-25 21:05:03 +00:00
|
|
|
println!("{:?}", 1 as f32);
|
|
|
|
println!("{:?}", 1 as f64);
|
2014-12-20 08:09:35 +00:00
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1_usize as isize);
|
|
|
|
println!("{:?}", 1_usize as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1_usize as *const String);
|
2015-02-18 10:42:01 +00:00
|
|
|
println!("{:?}", 1_usize as i8);
|
|
|
|
println!("{:?}", 1_usize as i16);
|
|
|
|
println!("{:?}", 1_usize as i32);
|
|
|
|
println!("{:?}", 1_usize as i64);
|
|
|
|
println!("{:?}", 1_usize as u8);
|
|
|
|
println!("{:?}", 1_usize as u16);
|
|
|
|
println!("{:?}", 1_usize as u32);
|
|
|
|
println!("{:?}", 1_usize as u64);
|
|
|
|
println!("{:?}", 1_usize as f32);
|
|
|
|
println!("{:?}", 1_usize as f64);
|
2014-12-20 08:09:35 +00:00
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1i8 as isize);
|
|
|
|
println!("{:?}", 1i8 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1i8 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1i8 as i8);
|
|
|
|
println!("{:?}", 1i8 as i16);
|
|
|
|
println!("{:?}", 1i8 as i32);
|
|
|
|
println!("{:?}", 1i8 as i64);
|
|
|
|
println!("{:?}", 1i8 as u8);
|
|
|
|
println!("{:?}", 1i8 as u16);
|
|
|
|
println!("{:?}", 1i8 as u32);
|
|
|
|
println!("{:?}", 1i8 as u64);
|
|
|
|
println!("{:?}", 1i8 as f32);
|
|
|
|
println!("{:?}", 1i8 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1u8 as isize);
|
|
|
|
println!("{:?}", 1u8 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1u8 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1u8 as i8);
|
|
|
|
println!("{:?}", 1u8 as i16);
|
|
|
|
println!("{:?}", 1u8 as i32);
|
|
|
|
println!("{:?}", 1u8 as i64);
|
|
|
|
println!("{:?}", 1u8 as u8);
|
|
|
|
println!("{:?}", 1u8 as u16);
|
|
|
|
println!("{:?}", 1u8 as u32);
|
|
|
|
println!("{:?}", 1u8 as u64);
|
|
|
|
println!("{:?}", 1u8 as f32);
|
|
|
|
println!("{:?}", 1u8 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1i16 as isize);
|
|
|
|
println!("{:?}", 1i16 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1i16 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1i16 as i8);
|
|
|
|
println!("{:?}", 1i16 as i16);
|
|
|
|
println!("{:?}", 1i16 as i32);
|
|
|
|
println!("{:?}", 1i16 as i64);
|
|
|
|
println!("{:?}", 1i16 as u8);
|
|
|
|
println!("{:?}", 1i16 as u16);
|
|
|
|
println!("{:?}", 1i16 as u32);
|
|
|
|
println!("{:?}", 1i16 as u64);
|
|
|
|
println!("{:?}", 1i16 as f32);
|
|
|
|
println!("{:?}", 1i16 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1u16 as isize);
|
|
|
|
println!("{:?}", 1u16 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1u16 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1u16 as i8);
|
|
|
|
println!("{:?}", 1u16 as i16);
|
|
|
|
println!("{:?}", 1u16 as i32);
|
|
|
|
println!("{:?}", 1u16 as i64);
|
|
|
|
println!("{:?}", 1u16 as u8);
|
|
|
|
println!("{:?}", 1u16 as u16);
|
|
|
|
println!("{:?}", 1u16 as u32);
|
|
|
|
println!("{:?}", 1u16 as u64);
|
|
|
|
println!("{:?}", 1u16 as f32);
|
|
|
|
println!("{:?}", 1u16 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1i32 as isize);
|
|
|
|
println!("{:?}", 1i32 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1i32 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1i32 as i8);
|
|
|
|
println!("{:?}", 1i32 as i16);
|
|
|
|
println!("{:?}", 1i32 as i32);
|
|
|
|
println!("{:?}", 1i32 as i64);
|
|
|
|
println!("{:?}", 1i32 as u8);
|
|
|
|
println!("{:?}", 1i32 as u16);
|
|
|
|
println!("{:?}", 1i32 as u32);
|
|
|
|
println!("{:?}", 1i32 as u64);
|
|
|
|
println!("{:?}", 1i32 as f32);
|
|
|
|
println!("{:?}", 1i32 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1u32 as isize);
|
|
|
|
println!("{:?}", 1u32 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1u32 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1u32 as i8);
|
|
|
|
println!("{:?}", 1u32 as i16);
|
|
|
|
println!("{:?}", 1u32 as i32);
|
|
|
|
println!("{:?}", 1u32 as i64);
|
|
|
|
println!("{:?}", 1u32 as u8);
|
|
|
|
println!("{:?}", 1u32 as u16);
|
|
|
|
println!("{:?}", 1u32 as u32);
|
|
|
|
println!("{:?}", 1u32 as u64);
|
|
|
|
println!("{:?}", 1u32 as f32);
|
|
|
|
println!("{:?}", 1u32 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1i64 as isize);
|
|
|
|
println!("{:?}", 1i64 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1i64 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1i64 as i8);
|
|
|
|
println!("{:?}", 1i64 as i16);
|
|
|
|
println!("{:?}", 1i64 as i32);
|
|
|
|
println!("{:?}", 1i64 as i64);
|
|
|
|
println!("{:?}", 1i64 as u8);
|
|
|
|
println!("{:?}", 1i64 as u16);
|
|
|
|
println!("{:?}", 1i64 as u32);
|
|
|
|
println!("{:?}", 1i64 as u64);
|
|
|
|
println!("{:?}", 1i64 as f32);
|
|
|
|
println!("{:?}", 1i64 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1u64 as isize);
|
|
|
|
println!("{:?}", 1u64 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1u64 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1u64 as i8);
|
|
|
|
println!("{:?}", 1u64 as i16);
|
|
|
|
println!("{:?}", 1u64 as i32);
|
|
|
|
println!("{:?}", 1u64 as i64);
|
|
|
|
println!("{:?}", 1u64 as u8);
|
|
|
|
println!("{:?}", 1u64 as u16);
|
|
|
|
println!("{:?}", 1u64 as u32);
|
|
|
|
println!("{:?}", 1u64 as u64);
|
|
|
|
println!("{:?}", 1u64 as f32);
|
|
|
|
println!("{:?}", 1u64 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1u64 as isize);
|
|
|
|
println!("{:?}", 1u64 as usize);
|
2017-10-23 03:01:00 +00:00
|
|
|
println!("{:?}", 1u64 as *const String);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1u64 as i8);
|
|
|
|
println!("{:?}", 1u64 as i16);
|
|
|
|
println!("{:?}", 1u64 as i32);
|
|
|
|
println!("{:?}", 1u64 as i64);
|
|
|
|
println!("{:?}", 1u64 as u8);
|
|
|
|
println!("{:?}", 1u64 as u16);
|
|
|
|
println!("{:?}", 1u64 as u32);
|
|
|
|
println!("{:?}", 1u64 as u64);
|
|
|
|
println!("{:?}", 1u64 as f32);
|
|
|
|
println!("{:?}", 1u64 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", true as isize);
|
|
|
|
println!("{:?}", true as usize);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", true as i8);
|
|
|
|
println!("{:?}", true as i16);
|
|
|
|
println!("{:?}", true as i32);
|
|
|
|
println!("{:?}", true as i64);
|
|
|
|
println!("{:?}", true as u8);
|
|
|
|
println!("{:?}", true as u16);
|
|
|
|
println!("{:?}", true as u32);
|
|
|
|
println!("{:?}", true as u64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1f32 as isize);
|
|
|
|
println!("{:?}", 1f32 as usize);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1f32 as i8);
|
|
|
|
println!("{:?}", 1f32 as i16);
|
|
|
|
println!("{:?}", 1f32 as i32);
|
|
|
|
println!("{:?}", 1f32 as i64);
|
|
|
|
println!("{:?}", 1f32 as u8);
|
|
|
|
println!("{:?}", 1f32 as u16);
|
|
|
|
println!("{:?}", 1f32 as u32);
|
|
|
|
println!("{:?}", 1f32 as u64);
|
|
|
|
println!("{:?}", 1f32 as f32);
|
|
|
|
println!("{:?}", 1f32 as f64);
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
println!("{:?}", 1f64 as isize);
|
|
|
|
println!("{:?}", 1f64 as usize);
|
2014-12-20 08:09:35 +00:00
|
|
|
println!("{:?}", 1f64 as i8);
|
|
|
|
println!("{:?}", 1f64 as i16);
|
|
|
|
println!("{:?}", 1f64 as i32);
|
|
|
|
println!("{:?}", 1f64 as i64);
|
|
|
|
println!("{:?}", 1f64 as u8);
|
|
|
|
println!("{:?}", 1f64 as u16);
|
|
|
|
println!("{:?}", 1f64 as u32);
|
|
|
|
println!("{:?}", 1f64 as u64);
|
|
|
|
println!("{:?}", 1f64 as f32);
|
|
|
|
println!("{:?}", 1f64 as f64);
|
2011-10-27 16:14:13 +00:00
|
|
|
}
|