rust/src/test/run-pass/simple-obj.rs

9 lines
118 B
Rust

// -*- rust -*-
obj x() {
fn hello() { log "hello, object world"; }
}
fn main() { auto mx = x(); mx.hello(); }