]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/autoref-intermediate-types-issue-3585.rs
std: Remove format_strbuf!()
[rust.git] / src / test / run-pass / autoref-intermediate-types-issue-3585.rs
index e10428e3c5dc24453afddbbdb7fcd489c87ed3eb..270f85114ea4934034734c46d8ee463f4f66e314 100644 (file)
@@ -16,13 +16,13 @@ trait Foo {
 
 impl<T:Foo> Foo for @T {
     fn foo(&self) -> String {
-        format_strbuf!("@{}", (**self).foo())
+        format!("@{}", (**self).foo())
     }
 }
 
 impl Foo for uint {
     fn foo(&self) -> String {
-        format_strbuf!("{}", *self)
+        format!("{}", *self)
     }
 }