summary refs log tree commit diff
path: root/src/test/ui/issues/issue-3874.rs
blob: 8a7eaf29539cb48f0570dcead9e9492d4d2613a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-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() {}