rustdoc-json: Add test for #[cold]
Follow-up to https://www.github.com/rust-lang/rust/pull/142491
This commit is contained in:
parent
42245d34d2
commit
98fce2546d
1 changed files with 3 additions and 0 deletions
3
tests/rustdoc-json/attrs/cold.rs
Normal file
3
tests/rustdoc-json/attrs/cold.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
//@ is "$.index[?(@.name=='cold_fn')].attrs" '["#[attr = Cold]"]'
|
||||
#[cold]
|
||||
pub fn cold_fn() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue