]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
c34b1796 | 3 | // pretty-expanded FIXME #23616 |
1a4d82fc | 4 | |
dc9dc135 | 5 | type Connection = Box<dyn FnMut(Vec<u8>) + 'static>; |
223e47cc LB |
6 | |
7 | fn f() -> Option<Connection> { | |
c34b1796 | 8 | let mock_connection: Connection = Box::new(|_| {}); |
223e47cc LB |
9 | Some(mock_connection) |
10 | } | |
11 | ||
12 | pub fn main() { | |
13 | } |