2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2012-10-31 00:05:34 +02:00
|
|
|
// Issue #3878
|
|
|
|
// Issue Name: Unused move causes a crash
|
|
|
|
// Abstract: zero-fill to block after drop
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-04-14 21:00:31 +05:30
|
|
|
#![allow(path_statement)]
|
2015-01-08 02:25:56 +01:00
|
|
|
#![allow(unknown_features)]
|
|
|
|
#![feature(box_syntax)]
|
2013-08-17 08:37:42 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main()
|
2012-10-31 00:05:34 +02:00
|
|
|
{
|
2015-02-17 21:41:32 +01:00
|
|
|
let y: Box<_> = box 1;
|
2013-02-15 02:44:18 -08:00
|
|
|
y;
|
2013-02-14 11:47:00 -08:00
|
|
|
}
|