Test for #2723. Closes #2723

This commit is contained in:
Tim Chevalier 2012-07-11 12:33:55 -07:00
parent 650009f80c
commit c0961bb88f
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,3 @@
unsafe fn f(xs: ~[int]) {
xs.map(|_x| { unsafe fn q() { fail; } });
}

View file

@ -0,0 +1,8 @@
// aux-build:issue_2723_a.rs
use issue_2723_a;
import issue_2723_a::*;
fn main() unsafe {
f(~[2]);
}