about summary refs log tree commit diff
path: root/tests/rustdoc-json/attrs/no_mangle_2024.rs
blob: 8af00eeda6bb60c35aade16bb32060c1aa0266ed (plain)
1
2
3
4
5
6
7
8
9
//@ 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() {}