mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 23:22:30 +00:00
34 lines
461 B
Rust
34 lines
461 B
Rust
#![expect(incomplete_features)]
|
|
#![feature(explicit_tail_calls)]
|
|
#![feature(c_variadic)]
|
|
|
|
fn _f0((): ()) {
|
|
become _g0(); //~ error: mismatched signatures
|
|
}
|
|
|
|
fn _g0() {}
|
|
|
|
|
|
fn _f1() {
|
|
become _g1(()); //~ error: mismatched signatures
|
|
}
|
|
|
|
fn _g1((): ()) {}
|
|
|
|
|
|
extern "C" fn _f2() {
|
|
become _g2(); //~ error: mismatched function ABIs
|
|
}
|
|
|
|
fn _g2() {}
|
|
|
|
|
|
fn _f3() {
|
|
become _g3(); //~ error: mismatched function ABIs
|
|
}
|
|
|
|
extern "C" fn _g3() {}
|
|
|
|
|
|
fn main() {}
|