rust/tests/ui/borrowck/borrowck-fixed-length-vecs.rs
2023-01-11 09:32:08 +00:00

8 lines
92 B
Rust

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