rust/src/test/run-pass/struct-field-assignability.rs

10 lines
92 B
Rust
Raw Normal View History

struct Foo {
x: &int
}
fn main() {
let f = Foo { x: @3 };
assert *f.x == 3;
}