]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/large_stack_arrays.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / large_stack_arrays.rs
index d9161bfcf15433f491bb5c58125f9b327b6736c5..6790765f803e06e57620f444379596b2d532aad9 100644 (file)
@@ -12,6 +12,12 @@ enum E {
     T(u32),
 }
 
+pub static DOESNOTLINT: [u8; 512_001] = [0; 512_001];
+pub static DOESNOTLINT2: [u8; 512_001] = {
+    let x = 0;
+    [x; 512_001]
+};
+
 fn main() {
     let bad = (
         [0u32; 20_000_000],