Skip to content

Commit 8fe6c5b

Browse files
committed
DO NOT MERGE: This fails to compile
This is meant to demonstrate why `&'static str` of #239 is very restrictive.
1 parent cf4edc0 commit 8fe6c5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

exercises/parallel-letter-frequency/tests/parallel-letter-frequency.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ fn test_no_texts() {
4040
assert_eq!(frequency::frequency(&[], 4), HashMap::new());
4141
}
4242

43+
#[test]
44+
#[ignore]
45+
fn test_hello_world() {
46+
let hi = format!("Hello, {}!", "world");
47+
frequency::frequency(&[&hi], 4);
48+
}
49+
4350
#[test]
4451
#[ignore]
4552
fn test_one_letter() {

0 commit comments

Comments
 (0)