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

8 lines
130 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();
}