mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
17 lines
291 B
Rust
17 lines
291 B
Rust
//@ revisions: edition2021 edition2024
|
|
//@[edition2021] edition:2021
|
|
//@[edition2024] edition:2024
|
|
//@[edition2024] compile-flags: -Zunstable-options
|
|
//@ check-pass
|
|
|
|
unsafe extern "C" {
|
|
safe static TEST1: i32;
|
|
safe fn test1(i: i32);
|
|
}
|
|
|
|
fn test2() {
|
|
test1(TEST1);
|
|
}
|
|
|
|
fn main() {}
|