rust/src/test/compile-fail/borrowck-call-sendfn.rs

9 lines
110 B
Rust
Raw Normal View History

// xfail-test #2978
fn call(x: @{mut f: fn~()}) {
x.f(); //~ ERROR foo
//~^ NOTE bar
}
fn main() {}