summaryrefslogtreecommitdiffstats
path: root/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs')
-rw-r--r--tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs
index 3416503b8..f98c3164d 100644
--- a/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs
+++ b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs
@@ -1,6 +1,8 @@
// check-pass
// Check tautalogically false `Copy` bounds
+
#![feature(trivial_bounds)]
+#![allow(dropping_references, dropping_copy_types)]
fn copy_string(t: String) -> String where String: Copy { //~ WARNING trivial_bounds
is_copy(&t);