rust/tests/ui/consts/issue-62045.rs

6 lines
72 B
Rust

//@ check-pass
fn main() {
assert_eq!(&mut [0; 1][..], &mut []);
}