Test case for issue #758.
This commit is contained in:
parent
b83167cf91
commit
eaefb0f1f6
11
src/test/run-pass/first-class-method.rs
Normal file
11
src/test/run-pass/first-class-method.rs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// xfail-stage1
|
||||||
|
// xfail-stage2
|
||||||
|
// xfail-stage3
|
||||||
|
|
||||||
|
// Test case for issue #758.
|
||||||
|
obj foo() { fn f() { } }
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let my_foo = foo();
|
||||||
|
let f = my_foo.f;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user