]> git.lizzy.rs Git - rust.git/blob - tests/ui/weak-new-uninhabited-issue-48493.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / 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 }