@@ -194,13 +194,13 @@ mod test {
194
194
use std:: num:: { Zero , One , Float } ;
195
195
use std:: hash:: hash;
196
196
197
- pub static _0_0i : Complex64 = Complex { re : 0.0 , im : 0.0 } ;
198
- pub static _1_0i : Complex64 = Complex { re : 1.0 , im : 0.0 } ;
199
- pub static _1_1i : Complex64 = Complex { re : 1.0 , im : 1.0 } ;
200
- pub static _0_1i : Complex64 = Complex { re : 0.0 , im : 1.0 } ;
201
- pub static _neg1_1i : Complex64 = Complex { re : -1.0 , im : 1.0 } ;
202
- pub static _05_05i : Complex64 = Complex { re : 0.5 , im : 0.5 } ;
203
- pub static all_consts : [ Complex64 , .. 5 ] = [ _0_0i, _1_0i, _1_1i, _neg1_1i, _05_05i] ;
197
+ pub const _0_0i : Complex64 = Complex { re : 0.0 , im : 0.0 } ;
198
+ pub const _1_0i : Complex64 = Complex { re : 1.0 , im : 0.0 } ;
199
+ pub const _1_1i : Complex64 = Complex { re : 1.0 , im : 1.0 } ;
200
+ pub const _0_1i : Complex64 = Complex { re : 0.0 , im : 1.0 } ;
201
+ pub const _neg1_1i : Complex64 = Complex { re : -1.0 , im : 1.0 } ;
202
+ pub const _05_05i : Complex64 = Complex { re : 0.5 , im : 0.5 } ;
203
+ pub const all_consts : [ Complex64 , .. 5 ] = [ _0_0i, _1_0i, _1_1i, _neg1_1i, _05_05i] ;
204
204
205
205
#[ test]
206
206
fn test_consts ( ) {
0 commit comments