blob: 1992f26378f69b373b50a218e4f633e0248a2def (
plain)
1
2
3
4
5
6
7
8
9
10
|
fn foo(_x: isize) { }
fn main() {
let v: u64 = 5;
let x = foo as extern "C" fn() -> isize;
//~^ ERROR non-primitive cast
let y = v as extern "Rust" fn(isize) -> (isize, isize);
//~^ ERROR non-primitive cast
y(x());
}
|