]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/numbers-arithmetic/issue-8460.rs
2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
4 #![feature(rustc_attrs)]
13 ($
($t
:ident
)*) => ($
(impl Int
for $t
{
14 fn zero() -> Self { 0 }
15 fn one() -> Self { 1 }
18 doit
! { i8 i16 i32 i64 isize }
22 $
(assert
!(thread
::spawn({
24 }).join().is_err());)*
30 isize::MIN
/ -isize::one(),
32 i16::MIN
/ -i16::one(),
33 i32::MIN
/ -i32::one(),
34 i64::MIN
/ -i64::one(),
35 1isize
/ isize::zero(),
40 isize::MIN
% -isize::one(),
42 i16::MIN
% -i16::one(),
43 i32::MIN
% -i32::one(),
44 i64::MIN
% -i64::one(),
45 1isize
% isize::zero(),