Skip to content

Commit ea147eb

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 ea147eb

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')].attrs" '["#[attr = Cold]"]'
2+
#[cold]
3+
pub fn cold() {}

0 commit comments

Comments
 (0)