summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-5239-1.rs
blob: 708ae34c6c6ae17ce485cf1c90d027d1be65af51 (plain)
1
2
3
4
5
6
// Regression test for issue #5239

fn main() {
    let x = |ref x: isize| { x += 1; };
    //~^ ERROR E0368
}