]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/simple-obj.rs
Populate tree.
[rust.git] / src / test / run-pass / simple-obj.rs
1 // -*- rust -*-
2
3 obj x() {
4   fn hello() {
5     log "hello, object world";
6   }
7 }
8
9 fn main() {
10   auto mx = x();
11   mx.hello();
12 }