rust/src/test/ui/weak-new-uninhabited-issue-48493.rs
2021-10-10 02:19:30 -04:00

8 lines
130 B
Rust

// run-pass
fn main() {
enum Void {}
let _ = std::rc::Weak::<Void>::new();
let _ = std::sync::Weak::<Void>::new();
}