We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd8988e + 91a478e commit 66497d5Copy full SHA for 66497d5
src/libcoretest/hash/mod.rs
@@ -62,9 +62,8 @@ fn test_writer_hasher() {
62
63
let s: &str = "a";
64
assert_eq!(hash(& s), 97 + 0xFF);
65
- // FIXME (#18283) Enable test
66
- //let s: Box<str> = box "a";
67
- //assert_eq!(hasher.hash(& s), 97 + 0xFF);
+ let s: Box<str> = String::from("a").into_boxed_str();
+ assert_eq!(hash(& s), 97 + 0xFF);
68
let cs: &[u8] = &[1, 2, 3];
69
assert_eq!(hash(& cs), 9);
70
// FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
0 commit comments