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

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