Skip to content

Commit 98fce25

Browse files
committed
rustdoc-json: Add test for #[cold]
Follow-up to https://www.github.com/rust-lang/rust/pull/142491
1 parent 42245d3 commit 98fce25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/rustdoc-json/attrs/cold.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//@ is "$.index[?(@.name=='cold_fn')].attrs" '["#[attr = Cold]"]'
2+
#[cold]
3+
pub fn cold_fn() {}

0 commit comments

Comments
 (0)