Files
rust/tests/rustdoc-json/attrs/export_name_2024.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
288 B
Rust
Raw Normal View History

//@ 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() {}