about summary refs log tree commit diff
path: root/src/test/ui/order-dependent-cast-inference.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/order-dependent-cast-inference.rs')
-rw-r--r--src/test/ui/order-dependent-cast-inference.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/order-dependent-cast-inference.rs b/src/test/ui/order-dependent-cast-inference.rs
deleted file mode 100644
index e666209b912..00000000000
--- a/src/test/ui/order-dependent-cast-inference.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-fn main() {
-    // Tests case where inference fails due to the order in which casts are checked.
-    // Ideally this would compile, see #48270.
-    let x = &"hello";
-    let mut y = 0 as *const _;
-    //~^ ERROR cannot cast to a pointer of an unknown kind
-    y = x as *const _;
-}