mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
9747a2c3ef
fixes #127915
16 lines
377 B
Rust
16 lines
377 B
Rust
#![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() {}
|