Skip to content

Commit d859816

Browse files
committed
fallout: run-fail tests that use box. (many/all could be ported to Box::new instead.)
1 parent a7a2dd9 commit d859816

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

src/test/run-fail/args-panic.rs

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
// error-pattern:meep
1313

14+
#![allow(unknown_features)]
15+
#![feature(box_syntax)]
16+
1417
fn f(_a: int, _b: int, _c: Box<int>) { panic!("moop"); }
1518

1619
fn main() { f(1, panic!("meep"), box 42); }

src/test/run-fail/panic-macro-any-wrapped.rs

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
// error-pattern:panicked at 'Box<Any>'
1212

13+
#![allow(unknown_features)]
14+
#![feature(box_syntax)]
15+
1316
fn main() {
1417
panic!(box 612_i64);
1518
}

src/test/run-fail/panic-macro-any.rs

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
// error-pattern:panicked at 'Box<Any>'
1212

13+
#![allow(unknown_features)]
14+
#![feature(box_syntax)]
15+
1316
fn main() {
1417
panic!(box 413i as Box<::std::any::Any+Send>);
1518
}

src/test/run-fail/unique-panic.rs

+4
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@
99
// except according to those terms.
1010

1111
// error-pattern: panic
12+
13+
#![allow(unknown_features)]
14+
#![feature(box_syntax)]
15+
1216
fn main() { box panic!(); }

src/test/run-fail/unwind-unique.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
// error-pattern:fail
1212

13+
#![allow(unknown_features)]
14+
#![feature(box_syntax)]
1315

1416
fn failfn() {
1517
panic!();

0 commit comments

Comments
 (0)