]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-7012.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / ui / issues / issue-7012.rs
1 // run-pass
2 #![allow(non_camel_case_types)]
3 #![allow(non_upper_case_globals)]
4
5 /*
6 # Comparison of static arrays
7
8 The expected behaviour would be that `test == test1`, therefore 'true'
9 would be printed, however the below prints false.
10 */
11
12 struct signature<'a> { pattern : &'a [u32] }
13
14 static test1: signature<'static> =  signature {
15   pattern: &[0x243f6a88,0x85a308d3,0x13198a2e,0x03707344,0xa4093822,0x299f31d0]
16 };
17
18 pub fn main() {
19   let test: &[u32] = &[0x243f6a88,0x85a308d3,0x13198a2e,
20                        0x03707344,0xa4093822,0x299f31d0];
21   println!("{}",test==test1.pattern);
22 }