-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Tracking issue for const_panic: rust-lang/rust#51999.
Once this gets stabilized, it would be allowed to panic in a const context, so macros like const_assert could be implemented like this:
macro_rules! const_assert {
($x:expr $(,)?) => {
const _: () = if $x { () } else { panic!("static assertion failed") };
};
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels