use assoc types in binop traits
This commit is contained in:
parent
7095dd0070
commit
99017f82b6
36 changed files with 375 additions and 156 deletions
|
|
@ -911,7 +911,9 @@ impl<'a, S: Str> Equiv<S> for String {
|
|||
}
|
||||
|
||||
#[experimental = "waiting on Add stabilization"]
|
||||
impl<'a> Add<&'a str, String> for String {
|
||||
impl<'a> Add<&'a str> for String {
|
||||
type Output = String;
|
||||
|
||||
fn add(mut self, other: &str) -> String {
|
||||
self.push_str(other);
|
||||
self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue