rust/tests/ui/issues/issue-21891.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
236 B
Rust
Raw Normal View History

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