]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/multitrait.rs
auto merge of #15421 : catharsis/rust/doc-ffi-minor-fixes, r=alexcrichton
[rust.git] / src / test / compile-fail / multitrait.rs
index f16e70777ed14b44e5f83737fb800824a64403fa..c7b0bc8822be1dfda61e88f2fb02eed62226f10e 100644 (file)
@@ -12,7 +12,7 @@ struct S {
  y: int
 }
 
-impl Cmp, ToStr for S { //~ ERROR: expected `{` but found `,`
+impl Cmp, ToString for S { //~ ERROR: expected `{` but found `,`
   fn eq(&&other: S) { false }
-  fn to_str(&self) -> String { "hi".to_owned() }
+  fn to_string(&self) -> String { "hi".to_string() }
 }