summaryrefslogtreecommitdiffstats
path: root/src/test/ui/moves/move-of-addr-of-mut.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/moves/move-of-addr-of-mut.rs')
-rw-r--r--src/test/ui/moves/move-of-addr-of-mut.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/moves/move-of-addr-of-mut.rs b/src/test/ui/moves/move-of-addr-of-mut.rs
deleted file mode 100644
index 19fd70286..000000000
--- a/src/test/ui/moves/move-of-addr-of-mut.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-// Ensure that taking a mutable raw ptr to an uninitialized variable does not change its
-// initializedness.
-
-struct S;
-
-fn main() {
- let mut x: S;
- std::ptr::addr_of_mut!(x); //~ ERROR E0381
-
- let y = x; // Should error here if `addr_of_mut` is ever allowed on uninitialized variables
- drop(y);
-}