summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs')
-rw-r--r--src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs b/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs
deleted file mode 100644
index cecc0b2da..000000000
--- a/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-// Check that false Copy bounds don't leak
-#![feature(trivial_bounds)]
-
-fn copy_out_string(t: &String) -> String where String: Copy {
- *t
-}
-
-fn move_out_string(t: &String) -> String {
- *t //~ ERROR
-}
-
-fn main() {}