about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-struct-update-with-dtor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-struct-update-with-dtor.rs')
-rw-r--r--src/test/compile-fail/borrowck-struct-update-with-dtor.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test/compile-fail/borrowck-struct-update-with-dtor.rs b/src/test/compile-fail/borrowck-struct-update-with-dtor.rs
index bbfc5f89a8d..bf1497420e2 100644
--- a/src/test/compile-fail/borrowck-struct-update-with-dtor.rs
+++ b/src/test/compile-fail/borrowck-struct-update-with-dtor.rs
@@ -11,11 +11,8 @@
 // Issue 4691: Ensure that functional-struct-update can only copy, not
 // move, when the struct implements Drop.
 
-// NoCopy
-use std::marker::NoCopy as NP;
-
-
-struct S { a: isize, np: NP }
+struct B;
+struct S { a: isize, b: B }
 impl Drop for S { fn drop(&mut self) { } }
 
 struct T { a: isize, mv: Box<isize> }