14 lines
163 B
Rust
14 lines
163 B
Rust
// error-pattern:fail
|
|
|
|
fn failfn() {
|
|
fail;
|
|
}
|
|
|
|
fn main() {
|
|
let y = ~0;
|
|
let x = @fn~() {
|
|
log(error, y);
|
|
};
|
|
failfn();
|
|
log(error, x);
|
|
} |