Skip to content

Commit

Permalink
Test for #2723. Closes #2723
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Jul 11, 2012
1 parent 650009f commit c0961bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/auxiliary/issue_2723_a.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
unsafe fn f(xs: ~[int]) {
xs.map(|_x| { unsafe fn q() { fail; } });
}
8 changes: 8 additions & 0 deletions src/test/run-pass/issue-2723-b.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// aux-build:issue_2723_a.rs

use issue_2723_a;
import issue_2723_a::*;

fn main() unsafe {
f(~[2]);
}

0 comments on commit c0961bb

Please sign in to comment.