We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c93b17d commit 42972f5Copy full SHA for 42972f5
library/std/src/panic.rs
@@ -126,6 +126,9 @@ where
126
/// Also note that unwinding into Rust code with a foreign exception (e.g.
127
/// an exception thrown from C++ code) is undefined behavior.
128
///
129
+/// Finally, be **careful in how you drop the result of this function**.
130
+/// If it is `Err`, it contains the panic payload, and dropping that may in turn panic!
131
+///
132
/// # Examples
133
134
/// ```
0 commit comments