rust/tests/ui/borrowck/borrowck-fixed-length-vecs.rs
2024-02-16 20:02:50 +00:00

8 lines
93 B
Rust

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