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.
const {}
1 parent 7a52736 commit 0355358Copy full SHA for 0355358
library/proc_macro/src/bridge/selfless_reify.rs
@@ -50,7 +50,7 @@ macro_rules! define_reify_functions {
50
>(f: F) -> $(extern $abi)? fn($($arg_ty),*) -> $ret_ty {
51
// FIXME(eddyb) describe the `F` type (e.g. via `type_name::<F>`) once panic
52
// formatting becomes possible in `const fn`.
53
- assert!(size_of::<F>() == 0, "selfless_reify: closure must be zero-sized");
+ const { assert!(size_of::<F>() == 0, "selfless_reify: closure must be zero-sized"); }
54
55
$(extern $abi)? fn wrapper<
56
$($($param,)*)?
0 commit comments