2019-10-28 19:00:00 -05:00
|
|
|
// build-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
enum PureCounter { PureCounterVariant(usize) }
|
2012-11-01 17:14:31 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn each<F>(thing: PureCounter, blk: F) where F: FnOnce(&usize) {
|
2014-11-06 02:05:53 -06:00
|
|
|
let PureCounter::PureCounterVariant(ref x) = thing;
|
2012-11-01 17:14:31 -05:00
|
|
|
blk(x);
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {}
|