about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-14 12:30:54 -0700
committerbors <bors@rust-lang.org>2013-09-14 12:30:54 -0700
commit524c190565c0dbafdb7f27bc3c27c0952f32c2f9 (patch)
tree7c0bc39e3de938085f0ab2c01670e941edd3e971 /src/test
parentbca015d9ffd94c36fc8e1b4f30727f71e5ce579f (diff)
parent6c4c5f56313b3b48dc42297ca927f2a43715e19f (diff)
downloadrust-524c190565c0dbafdb7f27bc3c27c0952f32c2f9.tar.gz
rust-524c190565c0dbafdb7f27bc3c27c0952f32c2f9.zip
auto merge of #9183 : alexcrichton/rust/issue-5794, r=catamorphism
Closes #5794
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/debug-correct-span.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/compile-fail/debug-correct-span.rs b/src/test/compile-fail/debug-correct-span.rs
new file mode 100644
index 00000000000..f143e6c00a2
--- /dev/null
+++ b/src/test/compile-fail/debug-correct-span.rs
@@ -0,0 +1,13 @@
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+fn main() {
+    debug!("%s %s", 3); //~ ERROR: not enough arguments
+}