summary refs log tree commit diff
path: root/src/test/run-pass/borrowck-root-while-cond.rs
blob: f8f63a713154d57b551096a7f59ba8f380bb707c (plain)
1
2
3
4
5
6
fn borrow<T>(x: &r/T) -> &r/T {x}

fn main() {
    let rec = @{mut f: @22};
    while *borrow(rec.f) == 23 {}
}