rust/tests/ui/issues/issue-3052.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
254 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
2019-05-28 18:47:21 +00:00
type Connection = Box<dyn FnMut(Vec<u8>) + 'static>;
2012-12-07 02:32:13 +00:00
fn f() -> Option<Connection> {
let mock_connection: Connection = Box::new(|_| {});
2012-12-07 02:32:13 +00:00
Some(mock_connection)
}
pub fn main() {
2012-12-07 02:32:13 +00:00
}