mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 09:32:42 +00:00
Test case for issue #758.
This commit is contained in:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user