Fix run pass test
This commit is contained in:
parent
40b3617035
commit
45860b53e0
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,9 @@
|
||||||
|
|
||||||
// no-pretty-expanded FIXME #15189
|
// no-pretty-expanded FIXME #15189
|
||||||
// ignore-windows FIXME #13259
|
// ignore-windows FIXME #13259
|
||||||
|
|
||||||
|
#![feature(unboxed_closures)]
|
||||||
|
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::io::process::Command;
|
use std::io::process::Command;
|
||||||
use std::finally::Finally;
|
use std::finally::Finally;
|
||||||
|
@ -25,7 +28,7 @@ fn foo() {
|
||||||
|
|
||||||
#[inline(never)]
|
#[inline(never)]
|
||||||
fn double() {
|
fn double() {
|
||||||
(|| {
|
(|&mut:| {
|
||||||
panic!("once");
|
panic!("once");
|
||||||
}).finally(|| {
|
}).finally(|| {
|
||||||
panic!("twice");
|
panic!("twice");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue