2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
type Connection = Box<dyn FnMut(Vec<u8>) + 'static>;
|
2012-12-06 20:32:13 -06:00
|
|
|
|
|
|
|
fn f() -> Option<Connection> {
|
2015-02-15 02:52:21 -06:00
|
|
|
let mock_connection: Connection = Box::new(|_| {});
|
2012-12-06 20:32:13 -06:00
|
|
|
Some(mock_connection)
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2012-12-06 20:32:13 -06:00
|
|
|
}
|