diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-3052.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3052.rs b/src/test/ui/issues/issue-3052.rs new file mode 100644 index 000000000..ee2456da3 --- /dev/null +++ b/src/test/ui/issues/issue-3052.rs @@ -0,0 +1,13 @@ +// 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() { +} |