summary refs log tree commit diff
path: root/src/test/run-pass/let-destruct-ref.rs
blob: fdb2805ae1841ad3501d39f6059609f8300efd46 (plain)
1
2
3
4
5
pub fn main() {
    let x = ~"hello";
    let ref y = x;
    assert_eq!(x.slice(0, x.len()), y.slice(0, y.len()));
}