rust/tests/ui/rust-2024/unsafe-attributes/unsafe-attribute-marked.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
225 B
Rust
Raw Normal View History

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