about summary refs log tree commit diff
path: root/src/test/ui/dead-code-impl.rs
diff options
context:
space:
mode:
authorPi Lanningham <pi.lanningham@gmail.com>2019-10-25 00:42:05 -0400
committerPi Lanningham <pi.lanningham@gmail.com>2019-10-26 21:42:52 -0400
commite063ddb12e1e1d2ca0ab05b9976ee1d0b20a34e1 (patch)
treeb1a113ac15d254d72e491533fc53ba53eeb5e08b /src/test/ui/dead-code-impl.rs
parent269d38413ce5f1e7ada5862b91e1d5a92f44857e (diff)
downloadrust-e063ddb12e1e1d2ca0ab05b9976ee1d0b20a34e1.tar.gz
rust-e063ddb12e1e1d2ca0ab05b9976ee1d0b20a34e1.zip
Move dead_code related tests to test/ui/dead-code
This helps organize the tests better.  I also renamed several of the tests to remove redundant dead-code in the path, and better match what they're testing
Diffstat (limited to 'src/test/ui/dead-code-impl.rs')
-rw-r--r--src/test/ui/dead-code-impl.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/dead-code-impl.rs b/src/test/ui/dead-code-impl.rs
deleted file mode 100644
index 84829c98e57..00000000000
--- a/src/test/ui/dead-code-impl.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// run-pass
-
-#![deny(dead_code)]
-
-pub struct GenericFoo<T>(T);
-
-type Foo = GenericFoo<u32>;
-
-impl Foo {
-    fn bar(self) -> u8 {
-        0
-    }
-}
-
-fn main() {
-    println!("{}", GenericFoo(0).bar());
-}