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