mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
16 lines
240 B
Rust
16 lines
240 B
Rust
//@ revisions: edition2021 edition2024
|
|
//@[edition2021] edition:2021
|
|
//@[edition2024] edition:2024
|
|
//@ check-pass
|
|
|
|
unsafe extern "C" {
|
|
safe static TEST1: i32;
|
|
safe fn test1(i: i32);
|
|
}
|
|
|
|
fn test2() {
|
|
test1(TEST1);
|
|
}
|
|
|
|
fn main() {}
|