summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-fixed-length-vecs.rs
blob: 126323d8d242bebf6eed84c5b478f66622e70012 (plain)
1
2
3
4
5
6
7
// run-pass

pub fn main() {
    let x = [22];
    let y = &x[0];
    assert_eq!(*y, 22);
}