diff options
| -rw-r--r-- | library/std/src/panic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index bb08fa35d17..0f568da459b 100644 --- a/library/std/src/panic.rs +++ b/library/std/src/panic.rs @@ -33,7 +33,7 @@ pub use core::panic::{Location, PanicInfo}; /// See the [`panic!`] macro for more information about panicking. #[stable(feature = "panic_any", since = "1.51.0")] #[inline] -pub fn panic_any<M: Any + Send>(msg: M) -> ! { +pub fn panic_any<M: 'static + Any + Send>(msg: M) -> ! { crate::panicking::begin_panic(msg); } |
