]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/move-subpaths-moves-root.rs
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
[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 }