393deeb06f
Conflicts: src/comp/middle/trans.rs src/comp/middle/trans_build.rs src/lib/run_program.rs src/test/compiletest/runtest.rs
16 lines
338 B
Rust
16 lines
338 B
Rust
// 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"
|
|
} ();
|
|
});
|
|
} |