Merge branch 'unwind'
Conflicts: src/comp/middle/trans.rs src/comp/middle/trans_build.rs src/lib/run_program.rs src/test/compiletest/runtest.rs
This commit is contained in:
commit
393deeb06f
49 changed files with 491 additions and 106 deletions
16
src/test/run-fail/unwind-lambda.rs
Normal file
16
src/test/run-fail/unwind-lambda.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// error-pattern:fail
|
||||
|
||||
fn main() {
|
||||
let cheese = "roquefort";
|
||||
let carrots = @"crunchy";
|
||||
|
||||
fn (tasties: @str, macerate: block(str)) {
|
||||
macerate(*tasties);
|
||||
} (carrots, { |food|
|
||||
let mush = food + cheese;
|
||||
lambda() {
|
||||
let chew = mush + cheese;
|
||||
fail "so yummy"
|
||||
} ();
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue