aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/generics22.rs
blob: b838e6e8262cd99cfe68aeb28c7b6dc530c0449d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[lang = "sized"]
pub trait Sized {}

fn callee<T>(t: (T, bool)) -> i32 {
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
    32
}

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

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