/src/test/run-pass/rec-auto.rs

http://github.com/jruderman/rust · Rust · 11 lines · 5 code · 4 blank · 2 comment · 0 complexity · e3ffb4f9f9121bb7295e83a1f3d90fea MD5 · raw file

  1. // -*- rust -*-
  2. // Issue #50.
  3. fn main() {
  4. let x = {foo: ~"hello", bar: ~"world"};
  5. log(debug, x.foo);
  6. log(debug, x.bar);
  7. }