fallout: run-fail tests that use box. (many/all could be ported to Box::new instead.)

This commit is contained in:
Felix S. Klock II 2015-01-08 02:37:58 +01:00
parent a7a2dd96ec
commit d859816715
5 changed files with 15 additions and 0 deletions

View File

@ -11,6 +11,9 @@
// error-pattern:meep
#![allow(unknown_features)]
#![feature(box_syntax)]
fn f(_a: int, _b: int, _c: Box<int>) { panic!("moop"); }
fn main() { f(1, panic!("meep"), box 42); }

View File

@ -10,6 +10,9 @@
// error-pattern:panicked at 'Box<Any>'
#![allow(unknown_features)]
#![feature(box_syntax)]
fn main() {
panic!(box 612_i64);
}

View File

@ -10,6 +10,9 @@
// error-pattern:panicked at 'Box<Any>'
#![allow(unknown_features)]
#![feature(box_syntax)]
fn main() {
panic!(box 413i as Box<::std::any::Any+Send>);
}

View File

@ -9,4 +9,8 @@
// except according to those terms.
// error-pattern: panic
#![allow(unknown_features)]
#![feature(box_syntax)]
fn main() { box panic!(); }

View File

@ -10,6 +10,8 @@
// error-pattern:fail
#![allow(unknown_features)]
#![feature(box_syntax)]
fn failfn() {
panic!();