]> git.lizzy.rs Git - rust.git/blob - src/test/ui/weak-new-uninhabited-issue-48493.rs
Auto merge of #67000 - spastorino:remove-promoted-from-place, r=oli-obk
[rust.git] / src / test / ui / weak-new-uninhabited-issue-48493.rs
1 // run-pass
2
3 fn main() {
4     enum Void {}
5     std::rc::Weak::<Void>::new();
6     std::sync::Weak::<Void>::new();
7 }