blob: 4aa785e797f34886ba9b8ee588bfc00f02bab545 [file] [log] [blame] [edit]
//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616
type Connection = Box<dyn FnMut(Vec<u8>) + 'static>;
fn f() -> Option<Connection> {
let mock_connection: Connection = Box::new(|_| {});
Some(mock_connection)
}
pub fn main() {
}