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

10 lines
116 B
Rust

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