@@ -22,65 +22,49 @@ use std::{i8, i16, i32, i64, isize};
22
22
use std:: { u8, u16, u32, u64, usize} ;
23
23
24
24
const VALS_I8 : ( i8 , ) =
25
- //~^ ERROR constant evaluation error
26
- //~| ERROR constant evaluation error
27
- //~| attempt to subtract with overflow
28
25
(
29
26
i8:: MIN - 1 ,
27
+ //~^ ERROR constant evaluation error
30
28
) ;
31
29
32
30
const VALS_I16 : ( i16 , ) =
33
- //~^ ERROR constant evaluation error
34
- //~| ERROR constant evaluation error
35
- //~| attempt to subtract with overflow
36
31
(
37
32
i16:: MIN - 1 ,
33
+ //~^ ERROR constant evaluation error
38
34
) ;
39
35
40
36
const VALS_I32 : ( i32 , ) =
41
- //~^ ERROR constant evaluation error
42
- //~| ERROR constant evaluation error
43
- //~| attempt to subtract with overflow
44
37
(
45
38
i32:: MIN - 1 ,
39
+ //~^ ERROR constant evaluation error
46
40
) ;
47
41
48
42
const VALS_I64 : ( i64 , ) =
49
- //~^ ERROR constant evaluation error
50
- //~| ERROR constant evaluation error
51
- //~| attempt to subtract with overflow
52
43
(
53
44
i64:: MIN - 1 ,
45
+ //~^ ERROR constant evaluation error
54
46
) ;
55
47
56
48
const VALS_U8 : ( u8 , ) =
57
- //~^ ERROR constant evaluation error
58
- //~| ERROR constant evaluation error
59
- //~| attempt to subtract with overflow
60
49
(
61
50
u8:: MIN - 1 ,
51
+ //~^ ERROR constant evaluation error
62
52
) ;
63
53
64
54
const VALS_U16 : ( u16 , ) = (
65
- //~^ ERROR constant evaluation error
66
- //~| ERROR constant evaluation error
67
- //~| attempt to subtract with overflow
68
55
u16:: MIN - 1 ,
56
+ //~^ ERROR constant evaluation error
69
57
) ;
70
58
71
59
const VALS_U32 : ( u32 , ) = (
72
- //~^ ERROR constant evaluation error
73
- //~| ERROR constant evaluation error
74
- //~| attempt to subtract with overflow
75
60
u32:: MIN - 1 ,
61
+ //~^ ERROR constant evaluation error
76
62
) ;
77
63
78
64
const VALS_U64 : ( u64 , ) =
79
- //~^ ERROR constant evaluation error
80
- //~| ERROR constant evaluation error
81
- //~| attempt to subtract with overflow
82
65
(
83
66
u64:: MIN - 1 ,
67
+ //~^ ERROR constant evaluation error
84
68
) ;
85
69
86
70
fn main ( ) {
0 commit comments