about summary refs log tree commit diff
path: root/src/test/run-pass/struct-field-assignability.rs
blob: f877a766ead6fb5a1204f7e2d7db76a8fc998ec5 (plain)
1
2
3
4
5
6
7
8
9
struct Foo<'self> {
    x: &'self int
}

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