about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/move-arg-2-unique.rs
blob: de21d67eb4f62cf1756491d1c7d0861cd19bb6da (plain)
1
2
3
4
5
6
7
8
9
fn test(foo: Box<Vec<isize>>) {
    assert_eq!((*foo)[0], 10);
}

pub fn main() {
    let x = Box::new(vec![10]);
    // Test forgetting a local by move-in
    test(x);
}