Last active
August 29, 2015 14:03
-
-
Save jnicklas/aded338dfa7fb639b9cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn join(&self) -> String { | |
... | |
} | |
fn join(&self, separator: String) -> String { | |
... | |
} | |
// compile error, because the first parameter's type doesn't match the type of to_str already declared. | |
fn join(separator: String) -> String { | |
... | |
} | |
// compile error, because the second parameter's type doesn't match the type of to_str already declared. | |
fn join(&self, number: int) -> String { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment