rust/tests/ui/weak-new-uninhabited-issue-48493.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
131 B
Rust
Raw Permalink Normal View History

//@ run-pass
fn main() {
enum Void {}
2021-10-10 00:50:06 -05:00
let _ = std::rc::Weak::<Void>::new();
let _ = std::sync::Weak::<Void>::new();
}