summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-5239-2.rs
blob: b501c6e1853cadbb414112d2f4724c796817fe15 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
// Regression test for issue #5239


pub fn main() {
    let _f = |ref x: isize| { *x };
    let foo = 10;
    assert_eq!(_f(foo), 10);
}