mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-21 03:57:38 +00:00
10 lines
336 B
Rust
10 lines
336 B
Rust
//@ edition: 2024
|
|
#![no_std]
|
|
|
|
// The representation of `#[unsafe(export_name = ..)]` in rustdoc in edition 2024
|
|
// is still `#[export_name = ..]` without the `unsafe` attribute wrapper.
|
|
|
|
//@ is "$.index[*][?(@.name=='example')].attrs" '["#[export_name = \"altered\"]"]'
|
|
#[unsafe(export_name = "altered")]
|
|
pub extern "C" fn example() {}
|