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

Commit

Permalink
Merge pull request #120 from abhijeetbhagat/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Nov 2, 2015
2 parents 4735340 + 7990d1e commit fd3bdef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/27819.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pub fn anagrams_for(input: String, inputs: &[str]) -> Vec<&str> {
//vec![]; // either this line or the following crashes the compiler
Vec::new()
}

fn main(){
let inputs = ["hello", "world", "zombies", "pants"];
let outputs: Vec<&str> = vec![];
assert_eq!(anagrams_for("diaper", &inputs), outputs);
}

0 comments on commit fd3bdef

Please sign in to comment.