aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/enum_discriminant3.rs
blob: 32c79a5cd0a6cefdbc6d0242f482760de2239d28 (plain)
1
2
3
4
5
6
7
8
const x: isize = 1;
// { dg-warning "unused name" "" { target *-*-* } .-1 }

fn main() {
    enum Foo {
        Bar = x,
    }
}