2025-03-05 04:46:14 +00:00
|
|
|
//@ edition: 2024
|
|
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
|
|
// The representation of `#[unsafe(export_name = ..)]` in rustdoc in edition 2024
|
|
|
|
|
// is still `#[export_name = ..]` without the `unsafe` attribute wrapper.
|
|
|
|
|
|
2025-05-07 18:45:58 +00:00
|
|
|
//@ is "$.index[?(@.name=='example')].attrs" '["#[export_name = \"altered\"]"]'
|
2025-03-05 04:46:14 +00:00
|
|
|
#[unsafe(export_name = "altered")]
|
|
|
|
|
pub extern "C" fn example() {}
|