summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/redef_error3.rs
blob: a4bf1ed3d8ce831847eb16d3fbc7b4fb92d6d66d (plain)
1
2
3
4
5
6
7
8
9
fn test() -> bool {
    true
}

fn test() -> i32 { // { dg-error "redefined multiple times" }
    123
}

fn main() {}