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 2780e35 commit 9890217Copy full SHA for 9890217
src/test/ui/intrinsics/panic-uninitialized-zeroed.rs
@@ -53,8 +53,8 @@ enum LR_NonZero {
53
fn test_panic_msg<T>(op: impl (FnOnce() -> T) + panic::UnwindSafe, msg: &str) {
54
let err = panic::catch_unwind(op).err();
55
assert_eq!(
56
- err.as_ref().and_then(|a| a.downcast_ref::<String>()).map(|s| &**s),
57
- Some(msg)
+ err.as_ref().and_then(|a| a.downcast_ref::<&str>()),
+ Some(&msg)
58
);
59
}
60
0 commit comments