2025-03-05 04:46:14 +00:00
|
|
|
//@ edition: 2024
|
|
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
|
|
// The representation of `#[unsafe(export_name = ..)]` in rustdoc in edition 2024
|
2025-06-20 02:48:15 +00:00
|
|
|
// doesn't mention the `unsafe`.
|
2025-03-05 04:46:14 +00:00
|
|
|
|
2025-06-20 02:48:15 +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() {}
|