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 eec896c commit 37bc0acCopy full SHA for 37bc0ac
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