aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3538.rs
blob: 72694571f888efa9567383c748f8a91a72231a28 (plain)
1
2
3
4
5
6
7
8
9
enum A {
    Value(()),
}

fn main() {
    let a = A::Value(());
    a == A::Value;
    // { dg-error "variant expected constructor call" "" { target *-*-* } .-1 }
}