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 13:47:21 -05:00
type Connection = Box<dyn FnMut(Vec<u8>) + 'static>;
2012-12-06 20:32:13 -06:00
fn f() -> Option<Connection> {
let mock_connection: Connection = Box::new(|_| {});
2012-12-06 20:32:13 -06:00
Some(mock_connection)
}
pub fn main() {
2012-12-06 20:32:13 -06:00
}