about summary refs log tree commit diff
path: root/tests/ui/empty-allocation-non-null.rs
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-06-09 00:49:05 +0500
committerKivooeo <Kivooeo123@gmail.com>2025-06-28 17:04:16 +0500
commitf4502b8f0eeb0e2f078745cfbbe41b5763be9449 (patch)
tree07aa7d884f51285b618bfd1b3f7a13159a903899 /tests/ui/empty-allocation-non-null.rs
parent8072811356a178dbdf8ca09b1635cfafd4661971 (diff)
downloadrust-f4502b8f0eeb0e2f078745cfbbe41b5763be9449.tar.gz
rust-f4502b8f0eeb0e2f078745cfbbe41b5763be9449.zip
cleaned up some tests
Diffstat (limited to 'tests/ui/empty-allocation-non-null.rs')
-rw-r--r--tests/ui/empty-allocation-non-null.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/ui/empty-allocation-non-null.rs b/tests/ui/empty-allocation-non-null.rs
deleted file mode 100644
index 45035a42a5f..00000000000
--- a/tests/ui/empty-allocation-non-null.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-//@ run-pass
-
-pub fn main() {
-    assert!(Some(Box::new(())).is_some());
-
-    let xs: Box<[()]> = Box::<[(); 0]>::new([]);
-    assert!(Some(xs).is_some());
-
-    struct Foo;
-    assert!(Some(Box::new(Foo)).is_some());
-
-    let ys: Box<[Foo]> = Box::<[Foo; 0]>::new([]);
-    assert!(Some(ys).is_some());
-}