2 #![allow(non_camel_case_types)]
3 #![allow(non_upper_case_globals)]
6 # Comparison of static arrays
8 The expected behaviour would be that `test == test1`, therefore 'true'
9 would be printed, however the below prints false.
12 struct signature<'a> { pattern : &'a [u32] }
14 static test1: signature<'static> = signature {
15 pattern: &[0x243f6a88,0x85a308d3,0x13198a2e,0x03707344,0xa4093822,0x299f31d0]
19 let test: &[u32] = &[0x243f6a88,0x85a308d3,0x13198a2e,
20 0x03707344,0xa4093822,0x299f31d0];
21 println!("{}",test==test1.pattern);