blob: d97c66b4b9b139b5b76ab0c636c3113d3d0a7a73 [file] [log] [blame]
// error-pattern:fail
fn main() {
let cheese = ~"roquefort";
let carrots = @~"crunchy";
fn@(tasties: @~str, macerate: fn(~str)) {
macerate(*tasties);
} (carrots, |food| {
let mush = food + cheese;
let f = fn@() {
let chew = mush + cheese;
fail ~"so yummy"
};
f();
});
}