summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3874.rs
blob: f9553d88d2410805d3a7ae27945f07b65c05a944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

enum PureCounter { PureCounterVariant(usize) }

fn each<F>(thing: PureCounter, blk: F) where F: FnOnce(&usize) {
    let PureCounter::PureCounterVariant(ref x) = thing;
    blk(x);
}

pub fn main() {}