test: Add missing #![feature(managed_boxes)]

The tests use managed boxes, but are not perfectly feature-gated because
they use `@` inside macros. (It causes issue after `--pretty expanded`.)
This commit is contained in:
klutzy 2014-04-17 18:20:37 +09:00 committed by Alex Crichton
parent bdd360bb13
commit 0350d8e6d0
6 changed files with 8 additions and 4 deletions

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(managed_boxes)]
#[deriving(Eq, Show)]
struct Point { x : int }

View file

@ -10,6 +10,8 @@
// Binop corner cases
#![feature(managed_boxes)]
fn test_nil() {
assert_eq!((), ());
assert!((!(() != ())));

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(managed_boxes)]
pub fn main() {
assert!((@1 < @3));

View file

@ -9,7 +9,7 @@
// except according to those terms.
#![feature(macro_rules)]
#![feature(macro_rules, managed_boxes)]
#![deny(warnings)]
#![allow(unused_must_use)]
#![allow(deprecated_owned_vector)]

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
#![feature(macro_rules, managed_boxes)]
use std::{option, mem};

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
#![feature(macro_rules, managed_boxes)]
use std::mem;