summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/nested_fn2.rs
blob: 7040c862e75e025689a4376bf16b4686b3ed5be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
pub fn main() {
    fn test<T>(x: T) -> T {
        x
    }

    let mut a = 123;
    a = test(a);

    let mut b = 456f32;
    b = test(b);
}