summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/redef_error5.rs
blob: dc6ad50e1045a0aa7b169cd98ac8e4c547a6b49c (plain)
1
2
3
4
5
6
7
8
struct Foo(i32, bool);

impl Foo {
    const TEST: i32 = 123;
    const TEST: bool = false; // { dg-error "redefined multiple times"  }
}

fn main() {}