2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
5 #![feature(rustc_attrs)]
14 ($($t:ident)*) => ($(impl Int for $t {
15 fn zero() -> Self { 0 }
16 fn one() -> Self { 1 }
19 doit! { i8 i16 i32 i64 isize }
23 $(assert!(thread::spawn({
25 }).join().is_err());)*
31 isize::MIN / -isize::one(),
33 i16::MIN / -i16::one(),
34 i32::MIN / -i32::one(),
35 i64::MIN / -i64::one(),
36 1isize / isize::zero(),
41 isize::MIN % -isize::one(),
43 i16::MIN % -i16::one(),
44 i32::MIN % -i32::one(),
45 i64::MIN % -i64::one(),
46 1isize % isize::zero(),