diff options
| author | Alona Enraght-Moony <code@alona.page> | 2025-06-23 17:18:13 +0000 |
|---|---|---|
| committer | Alona Enraght-Moony <code@alona.page> | 2025-06-23 21:34:17 +0000 |
| commit | 98fce2546dcfe66c85f6186fc747a20bb697ef94 (patch) | |
| tree | ffb5ad15cfa7dfdd2a510386e8e82d001c168a9e /tests/rustdoc-json | |
| parent | 42245d34d22ade32b3f276dcf74deb826841594c (diff) | |
| download | rust-98fce2546dcfe66c85f6186fc747a20bb697ef94.tar.gz rust-98fce2546dcfe66c85f6186fc747a20bb697ef94.zip | |
rustdoc-json: Add test for `#[cold]`
Follow-up to https://www.github.com/rust-lang/rust/pull/142491
Diffstat (limited to 'tests/rustdoc-json')
| -rw-r--r-- | tests/rustdoc-json/attrs/cold.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/rustdoc-json/attrs/cold.rs b/tests/rustdoc-json/attrs/cold.rs new file mode 100644 index 00000000000..e219345d669 --- /dev/null +++ b/tests/rustdoc-json/attrs/cold.rs @@ -0,0 +1,3 @@ +//@ is "$.index[?(@.name=='cold_fn')].attrs" '["#[attr = Cold]"]' +#[cold] +pub fn cold_fn() {} |
