parent
650009f80c
commit
c0961bb88f
2 changed files with 11 additions and 0 deletions
3
src/test/auxiliary/issue_2723_a.rs
Normal file
3
src/test/auxiliary/issue_2723_a.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
unsafe fn f(xs: ~[int]) {
|
||||
xs.map(|_x| { unsafe fn q() { fail; } });
|
||||
}
|
8
src/test/run-pass/issue-2723-b.rs
Normal file
8
src/test/run-pass/issue-2723-b.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// aux-build:issue_2723_a.rs
|
||||
|
||||
use issue_2723_a;
|
||||
import issue_2723_a::*;
|
||||
|
||||
fn main() unsafe {
|
||||
f(~[2]);
|
||||
}
|
Loading…
Reference in a new issue