]> git.lizzy.rs Git - rust.git/commitdiff
Convert existential-minimal.rs to compile-pass
authorJonas Schievink <jonasschievink@gmail.com>
Thu, 4 Oct 2018 12:51:26 +0000 (14:51 +0200)
committerJonas Schievink <jonasschievink@gmail.com>
Thu, 4 Oct 2018 12:51:26 +0000 (14:51 +0200)
src/test/run-pass/impl-trait/existential-minimal.rs [deleted file]
src/test/run-pass/impl-trait/existential-minimal.stderr [deleted file]
src/test/ui/impl-trait/existential-minimal.rs [new file with mode: 0644]

diff --git a/src/test/run-pass/impl-trait/existential-minimal.rs b/src/test/run-pass/impl-trait/existential-minimal.rs
deleted file mode 100644 (file)
index bae4c68..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2018 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.
-
-// run-pass
-
-fn main() {}
-
-fn foo() -> impl std::fmt::Debug { "cake" }
diff --git a/src/test/run-pass/impl-trait/existential-minimal.stderr b/src/test/run-pass/impl-trait/existential-minimal.stderr
deleted file mode 100644 (file)
index dd1f749..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-warning: function is never used: `foo`
-  --> $DIR/existential-minimal.rs:15:1
-   |
-LL | fn foo() -> impl std::fmt::Debug { "cake" }
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = note: #[warn(dead_code)] on by default
-
diff --git a/src/test/ui/impl-trait/existential-minimal.rs b/src/test/ui/impl-trait/existential-minimal.rs
new file mode 100644 (file)
index 0000000..ff92092
--- /dev/null
@@ -0,0 +1,15 @@
+// Copyright 2018 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-pass
+
+fn main() {}
+
+fn foo() -> impl std::fmt::Debug { "cake" }