about summary refs log tree commit diff
path: root/tests/ui/issues/issue-3052.rs
blob: ab3519fe7147b6dcce5687152ac61daccd646b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
#![allow(dead_code)]

type Connection = Box<dyn FnMut(Vec<u8>) + 'static>;

fn f() -> Option<Connection> {
    let mock_connection: Connection = Box::new(|_| {});
    Some(mock_connection)
}

pub fn main() {
}