about summary refs log tree commit diff
path: root/tests/ui/borrowck/move-error-suggest-clone-panic-issue-127915.rs
blob: e422026ca4a27c09a5628a1c7c8a510c690761b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(dead_code)]

extern "C" {
    fn rust_interesting_average(_: i64, ...) -> f64;
}

fn test<T, U>(a: i64, b: i64, c: i64, d: i64, e: i64, f: T, g: U) -> i64 {
    unsafe {
        rust_interesting_average(
            6, a as f64, b, b as f64, f, c as f64, d, d as f64, e, e as f64, f, g, //~ ERROR use of moved value: `f` [E0382]
        ) as i64
    }
}

fn main() {}