rust/src/test/ui/issues/issue-3874.rs

13 lines
306 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
// pretty-expanded FIXME #23616
enum PureCounter { PureCounterVariant(usize) }
2012-11-01 17:14:31 -05:00
fn each<F>(thing: PureCounter, blk: F) where F: FnOnce(&usize) {
let PureCounter::PureCounterVariant(ref x) = thing;
2012-11-01 17:14:31 -05:00
blk(x);
}
pub fn main() {}