rust/src/test/run-pass/first-class-method.rs
2011-09-29 10:36:40 +02:00

10 lines
130 B
Rust

// xfail-test
// Test case for issue #758.
obj foo() { fn f() { } }
fn main() {
let my_foo = foo();
let f = my_foo.f;
}