mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
256 B
Rust
13 lines
256 B
Rust
//@ 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() {
|
|
}
|