about summary refs log tree commit diff
path: root/tests/ui/allocator
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-07-01 23:33:59 +0500
committerKivooeo <Kivooeo123@gmail.com>2025-07-01 23:33:59 +0500
commit1fb5e0149fb85af0e49fa40329cbc352b4cba861 (patch)
tree99717c06e20c4557a9e4d756a13bbf88d8093966 /tests/ui/allocator
parentf46ce66fcc3d6058f90ac5bf0930f940f1e7b0ca (diff)
moved tests
Diffstat (limited to 'tests/ui/allocator')
-rw-r--r--tests/ui/allocator/weak-uninhabited-type.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/allocator/weak-uninhabited-type.rs b/tests/ui/allocator/weak-uninhabited-type.rs
new file mode 100644
index 00000000000..ce7d5786b41
--- /dev/null
+++ b/tests/ui/allocator/weak-uninhabited-type.rs
@@ -0,0 +1,7 @@
+//@ run-pass
+
+fn main() {
+    enum Void {}
+    let _ = std::rc::Weak::<Void>::new();
+    let _ = std::sync::Weak::<Void>::new();
+}