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:
parent
bdd360bb13
commit
0350d8e6d0
6 changed files with 8 additions and 4 deletions
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
// Binop corner cases
|
||||
|
||||
#![feature(managed_boxes)]
|
||||
|
||||
fn test_nil() {
|
||||
assert_eq!((), ());
|
||||
assert!((!(() != ())));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue