@@ -23,19 +23,14 @@ fn main() {
23
23
//~| ERROR this expression will panic at runtime
24
24
assert ! ( thread:: spawn( move|| { 1isize / 0 ; } ) . join( ) . is_err( ) ) ;
25
25
//~^ ERROR attempt to divide by zero
26
- //~| ERROR this expression will panic at runtime
27
26
assert ! ( thread:: spawn( move|| { 1i8 / 0 ; } ) . join( ) . is_err( ) ) ;
28
27
//~^ ERROR attempt to divide by zero
29
- //~| ERROR this expression will panic at runtime
30
28
assert ! ( thread:: spawn( move|| { 1i16 / 0 ; } ) . join( ) . is_err( ) ) ;
31
29
//~^ ERROR attempt to divide by zero
32
- //~| ERROR this expression will panic at runtime
33
30
assert ! ( thread:: spawn( move|| { 1i32 / 0 ; } ) . join( ) . is_err( ) ) ;
34
31
//~^ ERROR attempt to divide by zero
35
- //~| ERROR this expression will panic at runtime
36
32
assert ! ( thread:: spawn( move|| { 1i64 / 0 ; } ) . join( ) . is_err( ) ) ;
37
33
//~^ ERROR attempt to divide by zero
38
- //~| ERROR this expression will panic at runtime
39
34
assert ! ( thread:: spawn( move|| { isize :: MIN % -1 ; } ) . join( ) . is_err( ) ) ;
40
35
//~^ ERROR attempt to calculate the remainder with overflow
41
36
//~| ERROR this expression will panic at runtime
@@ -53,17 +48,12 @@ fn main() {
53
48
//~| ERROR this expression will panic at runtime
54
49
assert ! ( thread:: spawn( move|| { 1isize % 0 ; } ) . join( ) . is_err( ) ) ;
55
50
//~^ ERROR attempt to calculate the remainder with a divisor of zero
56
- //~| ERROR this expression will panic at runtime
57
51
assert ! ( thread:: spawn( move|| { 1i8 % 0 ; } ) . join( ) . is_err( ) ) ;
58
52
//~^ ERROR attempt to calculate the remainder with a divisor of zero
59
- //~| ERROR this expression will panic at runtime
60
53
assert ! ( thread:: spawn( move|| { 1i16 % 0 ; } ) . join( ) . is_err( ) ) ;
61
54
//~^ ERROR attempt to calculate the remainder with a divisor of zero
62
- //~| ERROR this expression will panic at runtime
63
55
assert ! ( thread:: spawn( move|| { 1i32 % 0 ; } ) . join( ) . is_err( ) ) ;
64
56
//~^ ERROR attempt to calculate the remainder with a divisor of zero
65
- //~| ERROR this expression will panic at runtime
66
57
assert ! ( thread:: spawn( move|| { 1i64 % 0 ; } ) . join( ) . is_err( ) ) ;
67
58
//~^ ERROR attempt to calculate the remainder with a divisor of zero
68
- //~| ERROR this expression will panic at runtime
69
59
}
0 commit comments