Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit fd3bdef

Browse files
committed
Merge pull request #120 from abhijeetbhagat/patch-1
Add rust-lang/rust#27819
2 parents 4735340 + 7990d1e commit fd3bdef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/27819.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pub fn anagrams_for(input: String, inputs: &[str]) -> Vec<&str> {
2+
//vec![]; // either this line or the following crashes the compiler
3+
Vec::new()
4+
}
5+
6+
fn main(){
7+
let inputs = ["hello", "world", "zombies", "pants"];
8+
let outputs: Vec<&str> = vec![];
9+
assert_eq!(anagrams_for("diaper", &inputs), outputs);
10+
}

0 commit comments

Comments
 (0)