about summary refs log tree commit diff
path: root/src/test/compile-fail/tuple-struct-nonexhaustive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/tuple-struct-nonexhaustive.rs')
-rw-r--r--src/test/compile-fail/tuple-struct-nonexhaustive.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/tuple-struct-nonexhaustive.rs b/src/test/compile-fail/tuple-struct-nonexhaustive.rs
index 785eeb24784..4640957a9a8 100644
--- a/src/test/compile-fail/tuple-struct-nonexhaustive.rs
+++ b/src/test/compile-fail/tuple-struct-nonexhaustive.rs
@@ -13,7 +13,7 @@ struct Foo(int, int);
 fn main() {
     let x = Foo(1, 2);
     match x {   //~ ERROR non-exhaustive
-        Foo(1, b) => println(fmt!("%d", b)),
-        Foo(2, b) => println(fmt!("%d", b))
+        Foo(1, b) => printfln!("%d", b),
+        Foo(2, b) => printfln!("%d", b)
     }
 }