blob: 4f38ea02d9cc30cabb851ca3993bc07abb2dfe14 [file] [log] [blame] [edit]
//@ run-pass
//@ pretty-expanded FIXME #23616
use std::sync::mpsc::channel;
fn foo<F:FnOnce()+Send>(blk: F) {
blk();
}
pub fn main() {
let (tx, rx) = channel();
foo(move || {
tx.send(()).unwrap();
});
rx.recv().unwrap();
}