]> git.lizzy.rs Git - rust.git/blob - src/test/ui/huge-array.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / huge-array.rs
1 // error-pattern:; 1518600000
2
3 fn generic<T: Copy>(t: T) {
4     let s: [T; 1518600000] = [t; 1518600000];
5 }
6
7 fn main() {
8     let x: [u8; 1518599999] = [0; 1518599999];
9     generic::<[u8; 1518599999]>(x);
10 }