]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-fixed-length-vecs.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / borrowck / borrowck-fixed-length-vecs.rs
1 // run-pass
2
3 pub fn main() {
4     let x = [22];
5     let y = &x[0];
6     assert_eq!(*y, 22);
7 }