rustdoc-json: Add test for #[cold]

Follow-up to https://www.github.com/rust-lang/rust/pull/142491
This commit is contained in:
Alona Enraght-Moony 2025-06-23 17:18:13 +00:00
parent 42245d34d2
commit 98fce2546d

View file

@ -0,0 +1,3 @@
//@ is "$.index[?(@.name=='cold_fn')].attrs" '["#[attr = Cold]"]'
#[cold]
pub fn cold_fn() {}