summary refs log tree commit diff
path: root/src/test/run-pass/struct-field-assignability.rs
blob: da00e1595dee47293c3e8c209e34fa0164b95f23 (plain)
1
2
3
4
5
6
7
8
9
10
#[feature(managed_boxes)];

struct Foo<'a> {
    x: &'a int
}

pub fn main() {
    let f = Foo { x: @3 };
    assert_eq!(*f.x, 3);
}