summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/let-destruct-ref.rs
blob: 28d7294ebc882a96ae47f27759b4510009aa9ed1 (plain)
1
2
3
4
5
6
7
// run-pass

pub fn main() {
    let x = 3_usize;
    let ref y = x;
    assert_eq!(x, *y);
}