]> git.lizzy.rs Git - rust.git/blob - src/test/ui/weak-new-uninhabited-issue-48493.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / weak-new-uninhabited-issue-48493.rs
1 // run-pass
2
3 fn main() {
4     enum Void {}
5     let _ = std::rc::Weak::<Void>::new();
6     let _ = std::sync::Weak::<Void>::new();
7 }