aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/function_reference1.rs
blob: dfbd01bdbdcc2d524ab6b7874745aa6f9093114c (plain)
1
2
3
4
5
6
7
8
9
fn test(a: i32) -> i32 {
    a + 1
}

fn main() {
    let a = test;
    let b = a(1);
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
}