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

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