mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-01 05:25:38 +00:00
10 lines
289 B
Rust
10 lines
289 B
Rust
//@ edition: 2024
|
|
#![no_std]
|
|
|
|
// The representation of `#[unsafe(no_mangle)]` in rustdoc in edition 2024
|
|
// is still `#[no_mangle]` without the `unsafe` attribute wrapper.
|
|
|
|
//@ is "$.index[?(@.name=='example')].attrs" '["#[no_mangle]"]'
|
|
#[unsafe(no_mangle)]
|
|
pub extern "C" fn example() {}
|