diff options
Diffstat (limited to 'tests/ui/weak-new-uninhabited-issue-48493.rs')
-rw-r--r-- | tests/ui/weak-new-uninhabited-issue-48493.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/weak-new-uninhabited-issue-48493.rs b/tests/ui/weak-new-uninhabited-issue-48493.rs new file mode 100644 index 000000000..39fbf3c9e --- /dev/null +++ b/tests/ui/weak-new-uninhabited-issue-48493.rs @@ -0,0 +1,7 @@ +// run-pass + +fn main() { + enum Void {} + let _ = std::rc::Weak::<Void>::new(); + let _ = std::sync::Weak::<Void>::new(); +} |