about summary refs log tree commit diff
path: root/tests/rustdoc-json/attrs/export_name_2024.rs
blob: 7e398db92ab3b8d1614d5a916e292b71d0bc3fce (plain)
1
2
3
4
5
6
7
8
9
//@ edition: 2024
#![no_std]

// The representation of `#[unsafe(export_name = ..)]` in rustdoc in edition 2024
// doesn't mention the `unsafe`.

//@ is "$.index[?(@.name=='example')].attrs" '[{"export_name": "altered"}]'
#[unsafe(export_name = "altered")]
pub extern "C" fn example() {}