summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/generics21.rs
blob: dc4e935cac77429ddb91b971adde4fc4b1b259ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn callee<T>(t: &T) -> i32 {
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
    32
}

fn caller(t: i32) -> i32 {
    callee(&t)
}

fn main() {
    let a;
    a = caller(123);
}