summaryrefslogtreecommitdiffstats
path: root/tests/ui/unused-move.rs
blob: 697434d47ebb217c4cceb0d9d14e0e851bd1b5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
// Issue #3878
// Issue Name: Unused move causes a crash
// Abstract: zero-fill to block after drop

// pretty-expanded FIXME #23616

#![allow(path_statements)]

pub fn main() {
    let y: Box<_> = Box::new(1);
    y;
}