mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
fallout: run-fail tests that use box. (many/all could be ported to Box::new
instead.)
This commit is contained in:
parent
a7a2dd96ec
commit
d859816715
@ -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); }
|
||||
|
@ -10,6 +10,9 @@
|
||||
|
||||
// error-pattern:panicked at 'Box<Any>'
|
||||
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
fn main() {
|
||||
panic!(box 612_i64);
|
||||
}
|
||||
|
@ -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>);
|
||||
}
|
||||
|
@ -9,4 +9,8 @@
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern: panic
|
||||
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
fn main() { box panic!(); }
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
// error-pattern:fail
|
||||
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
fn failfn() {
|
||||
panic!();
|
||||
|
Loading…
Reference in New Issue
Block a user