Skip to content

Instantly share code, notes, and snippets.

@jnicklas
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnicklas/aded338dfa7fb639b9cf to your computer and use it in GitHub Desktop.
Save jnicklas/aded338dfa7fb639b9cf to your computer and use it in GitHub Desktop.
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