aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/simple-obj.rs
blob: b465a7d3754ee39d7fb2d2142c1238c2d4c7439a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// -*- rust -*-

obj x() {
  fn hello() {
    log "hello, object world";
  }
}

fn main() {
  auto mx = x();
  mx.hello();
}