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 Normal View History

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