Files
rust/tests/ui/static/static-array-shared-slice-references.rs
reddevilmidzy eb8da2f3ba move tests
2025-12-13 00:53:59 +09:00

12 lines
205 B
Rust

//@ build-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
static foo: [usize; 3] = [1, 2, 3];
static slice_1: &'static [usize] = &foo;
static slice_2: &'static [usize] = &foo;
fn main() {}