summaryrefslogtreecommitdiffstats
path: root/src/test/ui/weak-new-uninhabited-issue-48493.rs
blob: 39fbf3c9eb4e29ac6c3cdbec5b8a2f16f3c62946 (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();
}