summaryrefslogtreecommitdiff
path: root/tests/ui/weak-new-uninhabited-issue-48493.rs
blob: ce7d5786b41bba0ebf005039a11538ac4755a76d (plain)
1
2
3
4
5
6
7
//@ run-pass

fn main() {
    enum Void {}
    let _ = std::rc::Weak::<Void>::new();
    let _ = std::sync::Weak::<Void>::new();
}