We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 230d5b1 commit 8cac04eCopy full SHA for 8cac04e
library/std/src/panic.rs
@@ -33,7 +33,7 @@ pub use core::panic::{Location, PanicInfo};
33
/// See the [`panic!`] macro for more information about panicking.
34
#[stable(feature = "panic_any", since = "1.51.0")]
35
#[inline]
36
-pub fn panic_any<M: Any + Send>(msg: M) -> ! {
+pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! {
37
crate::panicking::begin_panic(msg);
38
}
39
0 commit comments