]> git.lizzy.rs Git - rust.git/commitdiff
debuginfo: Move test case from run-pass to debug-info directory so it does not interf...
authorMichael Woerister <michaelwoerister@posteo>
Wed, 19 Feb 2014 12:56:25 +0000 (13:56 +0100)
committerMichael Woerister <michaelwoerister@posteo>
Wed, 19 Feb 2014 16:12:37 +0000 (17:12 +0100)
src/test/debug-info/issue7712.rs [new file with mode: 0644]
src/test/run-pass/issue-7712.rs [deleted file]

diff --git a/src/test/debug-info/issue7712.rs b/src/test/debug-info/issue7712.rs
new file mode 100644 (file)
index 0000000..f911124
--- /dev/null
@@ -0,0 +1,25 @@
+// 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.
+
+// compile-flags:-g
+
+pub trait TraitWithDefaultMethod {
+    fn method(self) {
+        ()
+    }
+}
+
+struct MyStruct;
+
+impl TraitWithDefaultMethod for MyStruct { }
+
+pub fn main() {
+    MyStruct.method();
+}
diff --git a/src/test/run-pass/issue-7712.rs b/src/test/run-pass/issue-7712.rs
deleted file mode 100644 (file)
index f911124..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// 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.
-
-// compile-flags:-g
-
-pub trait TraitWithDefaultMethod {
-    fn method(self) {
-        ()
-    }
-}
-
-struct MyStruct;
-
-impl TraitWithDefaultMethod for MyStruct { }
-
-pub fn main() {
-    MyStruct.method();
-}