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

10 lines
109 B
Rust

struct Foo {
x: &'self int
}
pub fn main() {
let f = Foo { x: @3 };
fail_unless!(*f.x == 3);
}