rust/tests/ui/rust-2024/unsafe-attributes/unsafe-attribute-marked.rs
2024-06-23 19:02:14 -05:00

13 lines
256 B
Rust

//@ revisions: edition2021 edition2024
//@[edition2021] edition:2021
//@[edition2024] edition:2024
//@[edition2024] compile-flags: -Zunstable-options
//@ check-pass
#![feature(unsafe_attributes)]
#[unsafe(no_mangle)]
extern "C" fn foo() {}
fn main() {}