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

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

8 lines
131 B
Rust
Raw Normal View History

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