]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/pass/move-arg-2-unique.rs
Auto merge of #104915 - weihanglo:update-cargo, r=ehuss
[rust.git] / src / tools / miri / tests / pass / move-arg-2-unique.rs
1 #![feature(box_syntax)]
2
3 fn test(foo: Box<Vec<isize>>) {
4     assert_eq!((*foo)[0], 10);
5 }
6
7 pub fn main() {
8     let x = box vec![10];
9     // Test forgetting a local by move-in
10     test(x);
11 }