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

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

10 lines
173 B
Rust
Raw Normal View History

// run-pass
#![allow(non_upper_case_globals)]
struct T (&'static [isize]);
static t : T = T (&[5, 4, 3]);
pub fn main () {
let T(ref v) = t;
assert_eq!(v[0], 5);
2013-08-19 21:20:50 +00:00
}