We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
alloc::test::test_show
1 parent fdae757 commit fccc75cCopy full SHA for fccc75c
library/alloc/src/tests.rs
@@ -49,17 +49,17 @@ fn test_show() {
49
let b = Box::new(Test) as Box<dyn Any>;
50
let a_str = format!("{:?}", a);
51
let b_str = format!("{:?}", b);
52
- assert_eq!(a_str, "Any");
53
- assert_eq!(b_str, "Any");
+ assert_eq!(a_str, "Any { .. }");
+ assert_eq!(b_str, "Any { .. }");
54
55
static EIGHT: usize = 8;
56
static TEST: Test = Test;
57
let a = &EIGHT as &dyn Any;
58
let b = &TEST as &dyn Any;
59
let s = format!("{:?}", a);
60
- assert_eq!(s, "Any");
+ assert_eq!(s, "Any { .. }");
61
let s = format!("{:?}", b);
62
63
}
64
65
#[test]
0 commit comments