]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/move-subpaths-moves-root.rs
Rollup merge of #56044 - matthewjasper:function-param-drop-order, r=cramertj
[rust.git] / src / test / ui / nll / move-subpaths-moves-root.rs
1 #![feature(nll)]
2
3 fn main() {
4     let x = (vec![1, 2, 3], );
5     drop(x.0);
6     drop(x); //~ ERROR use of moved value
7 }