@@ -22,113 +22,113 @@ use std::{u8, u16, u32, u64, usize};
22
22
const VALS_I8 : ( i8 , i8 , i8 , i8 ) =
23
23
( -i8:: MIN ,
24
24
//~^ ERROR constant evaluation error
25
- //~| attempted to negate with overflow
25
+ //~| attempt to negate with overflow
26
26
i8:: MIN - 1 ,
27
27
//~^ ERROR constant evaluation error
28
- //~| attempted to subtract with overflow
28
+ //~| attempt to subtract with overflow
29
29
i8:: MAX + 1 ,
30
30
//~^ ERROR constant evaluation error
31
- //~| attempted to add with overflow
31
+ //~| attempt to add with overflow
32
32
i8:: MIN * 2 ,
33
33
//~^ ERROR constant evaluation error
34
- //~| attempted to multiply with overflow
34
+ //~| attempt to multiply with overflow
35
35
) ;
36
36
37
37
const VALS_I16 : ( i16 , i16 , i16 , i16 ) =
38
38
( -i16:: MIN ,
39
39
//~^ ERROR constant evaluation error
40
- //~| attempted to negate with overflow
40
+ //~| attempt to negate with overflow
41
41
i16:: MIN - 1 ,
42
42
//~^ ERROR constant evaluation error
43
- //~| attempted to subtract with overflow
43
+ //~| attempt to subtract with overflow
44
44
i16:: MAX + 1 ,
45
45
//~^ ERROR constant evaluation error
46
- //~| attempted to add with overflow
46
+ //~| attempt to add with overflow
47
47
i16:: MIN * 2 ,
48
48
//~^ ERROR constant evaluation error
49
- //~| attempted to multiply with overflow
49
+ //~| attempt to multiply with overflow
50
50
) ;
51
51
52
52
const VALS_I32 : ( i32 , i32 , i32 , i32 ) =
53
53
( -i32:: MIN ,
54
54
//~^ ERROR constant evaluation error
55
- //~| attempted to negate with overflow
55
+ //~| attempt to negate with overflow
56
56
i32:: MIN - 1 ,
57
57
//~^ ERROR constant evaluation error
58
- //~| attempted to subtract with overflow
58
+ //~| attempt to subtract with overflow
59
59
i32:: MAX + 1 ,
60
60
//~^ ERROR constant evaluation error
61
- //~| attempted to add with overflow
61
+ //~| attempt to add with overflow
62
62
i32:: MIN * 2 ,
63
63
//~^ ERROR constant evaluation error
64
- //~| attempted to multiply with overflow
64
+ //~| attempt to multiply with overflow
65
65
) ;
66
66
67
67
const VALS_I64 : ( i64 , i64 , i64 , i64 ) =
68
68
( -i64:: MIN ,
69
69
//~^ ERROR constant evaluation error
70
- //~| attempted to negate with overflow
70
+ //~| attempt to negate with overflow
71
71
i64:: MIN - 1 ,
72
72
//~^ ERROR constant evaluation error
73
- //~| attempted to subtract with overflow
73
+ //~| attempt to subtract with overflow
74
74
i64:: MAX + 1 ,
75
75
//~^ ERROR constant evaluation error
76
- //~| attempted to add with overflow
76
+ //~| attempt to add with overflow
77
77
i64:: MAX * 2 ,
78
78
//~^ ERROR constant evaluation error
79
- //~| attempted to multiply with overflow
79
+ //~| attempt to multiply with overflow
80
80
) ;
81
81
82
82
const VALS_U8 : ( u8 , u8 , u8 , u8 ) =
83
83
( -( u8:: MIN as i8 ) as u8 ,
84
84
u8:: MIN - 1 ,
85
85
//~^ ERROR constant evaluation error
86
- //~| attempted to subtract with overflow
86
+ //~| attempt to subtract with overflow
87
87
u8:: MAX + 1 ,
88
88
//~^ ERROR constant evaluation error
89
- //~| attempted to add with overflow
89
+ //~| attempt to add with overflow
90
90
u8:: MAX * 2 ,
91
91
//~^ ERROR constant evaluation error
92
- //~| attempted to multiply with overflow
92
+ //~| attempt to multiply with overflow
93
93
) ;
94
94
95
95
const VALS_U16 : ( u16 , u16 , u16 , u16 ) =
96
96
( -( u16:: MIN as i16 ) as u16 ,
97
97
u16:: MIN - 1 ,
98
98
//~^ ERROR constant evaluation error
99
- //~| attempted to subtract with overflow
99
+ //~| attempt to subtract with overflow
100
100
u16:: MAX + 1 ,
101
101
//~^ ERROR constant evaluation error
102
- //~| attempted to add with overflow
102
+ //~| attempt to add with overflow
103
103
u16:: MAX * 2 ,
104
104
//~^ ERROR constant evaluation error
105
- //~| attempted to multiply with overflow
105
+ //~| attempt to multiply with overflow
106
106
) ;
107
107
108
108
const VALS_U32 : ( u32 , u32 , u32 , u32 ) =
109
109
( -( u32:: MIN as i32 ) as u32 ,
110
110
u32:: MIN - 1 ,
111
111
//~^ ERROR constant evaluation error
112
- //~| attempted to subtract with overflow
112
+ //~| attempt to subtract with overflow
113
113
u32:: MAX + 1 ,
114
114
//~^ ERROR constant evaluation error
115
- //~| attempted to add with overflow
115
+ //~| attempt to add with overflow
116
116
u32:: MAX * 2 ,
117
117
//~^ ERROR constant evaluation error
118
- //~| attempted to multiply with overflow
118
+ //~| attempt to multiply with overflow
119
119
) ;
120
120
121
121
const VALS_U64 : ( u64 , u64 , u64 , u64 ) =
122
122
( -( u64:: MIN as i64 ) as u64 ,
123
123
u64:: MIN - 1 ,
124
124
//~^ ERROR constant evaluation error
125
- //~| attempted to subtract with overflow
125
+ //~| attempt to subtract with overflow
126
126
u64:: MAX + 1 ,
127
127
//~^ ERROR constant evaluation error
128
- //~| attempted to add with overflow
128
+ //~| attempt to add with overflow
129
129
u64:: MAX * 2 ,
130
130
//~^ ERROR constant evaluation error
131
- //~| attempted to multiply with overflow
131
+ //~| attempt to multiply with overflow
132
132
) ;
133
133
134
134
fn main ( ) {
0 commit comments