diff options
Diffstat (limited to 'tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs')
-rw-r--r-- | tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs b/tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs deleted file mode 100644 index 9f3c567b6..000000000 --- a/tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs +++ /dev/null @@ -1,10 +0,0 @@ -// Test ensuring that `dbg!(expr)` will take ownership of the argument. - -#[derive(Debug)] -struct NoCopy(usize); - -fn main() { - let a = NoCopy(0); - let _ = dbg!(a); - let _ = dbg!(a); //~ ERROR use of moved value -} |