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

// Since the 2024 edition the link_section attribute must use the unsafe qualification.
// However, the unsafe qualification is not shown by rustdoc.

//@ count "$.index[?(@.name=='example')].attrs[*]" 1
//@ is "$.index[?(@.name=='example')].attrs[*].link_section" '".text"'
#[unsafe(link_section = ".text")]
pub extern "C" fn example() {}