We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4be11 commit 18f61dbCopy full SHA for 18f61db
src/lib.rs
@@ -36,7 +36,7 @@ macro_rules! higher_order_closure {(
36
$( for<$($hr:lifetime),* $(,)?> )?
37
$( move $(@$move:tt)?)?
38
| $($arg_pat:tt : $ArgTy:ty),* $(,)?|
39
- -> $Ret:ty
+ $(-> $Ret:ty)?
40
$body:block
41
) => (
42
({
@@ -62,7 +62,7 @@ macro_rules! higher_order_closure {(
62
f: __Closure,
63
) -> __Closure
64
where
65
- __Closure : for<$($($hr ,)*)?> $crate::__::FnOnce($($ArgTy),*) -> $Ret,
+ __Closure : for<$($($hr ,)*)?> $crate::__::FnOnce($($ArgTy),*) ?(-> $Ret)?,
66
$($($($wc)*)?)?
67
{
68
f
0 commit comments