]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unused-move.rs
Auto merge of #85556 - FabianWolff:issue-85071, r=estebank,jackh726
[rust.git] / src / test / ui / unused-move.rs
1 // run-pass
2 // Issue #3878
3 // Issue Name: Unused move causes a crash
4 // Abstract: zero-fill to block after drop
5
6 // pretty-expanded FIXME #23616
7
8 #![allow(path_statements)]
9 #![feature(box_syntax)]
10
11 pub fn main()
12 {
13     let y: Box<_> = box 1;
14     y;
15 }