run zero-size assertion in const {}
This commit is contained in:
parent
7a52736039
commit
0355358e6c
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ macro_rules! define_reify_functions {
|
|||
>(f: F) -> $(extern $abi)? fn($($arg_ty),*) -> $ret_ty {
|
||||
// FIXME(eddyb) describe the `F` type (e.g. via `type_name::<F>`) once panic
|
||||
// formatting becomes possible in `const fn`.
|
||||
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"); }
|
||||
|
||||
$(extern $abi)? fn wrapper<
|
||||
$($($param,)*)?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue