about summary refs log tree commit diff
path: root/src/test/ui/huge-array.rs
blob: 0608b23dac6b119e79389da7a6d8f86d85d1a24d (plain)
1
2
3
4
5
6
7
8
9
10
// error-pattern:; 1518600000

fn generic<T: Copy>(t: T) {
    let s: [T; 1518600000] = [t; 1518600000];
}

fn main() {
    let x: [u8; 1518599999] = [0; 1518599999];
    generic::<[u8; 1518599999]>(x);
}