We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4dea81 commit 518722eCopy full SHA for 518722e
std/src/panic.rs
@@ -73,6 +73,8 @@ impl<'a> PanicHookInfo<'a> {
73
/// panic::set_hook(Box::new(|panic_info| {
74
/// if let Some(s) = panic_info.payload().downcast_ref::<&str>() {
75
/// println!("panic occurred: {s:?}");
76
+ /// } else if let Some(s) = panic_info.payload().downcast_ref::<String>() {
77
+ /// println!("panic occurred: {s:?}");
78
/// } else {
79
/// println!("panic occurred");
80
/// }
0 commit comments