diff options
| author | Urgau <urgau@numericable.fr> | 2025-05-01 17:24:00 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2025-05-22 19:12:13 +0200 |
| commit | 80c6a0885079038caa0bc90670afbf5ead806c17 (patch) | |
| tree | e6f8b221de6b4ac0673c3bd453c91f468beabd8e /tests/ui/rustdoc | |
| parent | eec894d3f9bf708d8c4c0679bc57ed899d6c37ab (diff) | |
| download | rust-80c6a0885079038caa0bc90670afbf5ead806c17.tar.gz rust-80c6a0885079038caa0bc90670afbf5ead806c17.zip | |
Allow `#![doc(test(attr(..)))]` at module level too
Diffstat (limited to 'tests/ui/rustdoc')
| -rw-r--r-- | tests/ui/rustdoc/doc-test-attr-pass.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/rustdoc/doc-test-attr-pass.rs b/tests/ui/rustdoc/doc-test-attr-pass.rs index f0120b7c2d0..40ffd5b2572 100644 --- a/tests/ui/rustdoc/doc-test-attr-pass.rs +++ b/tests/ui/rustdoc/doc-test-attr-pass.rs @@ -6,4 +6,8 @@ #![doc(test(attr(deny(warnings))))] #![doc(test())] +mod test { + #![doc(test(attr(allow(warnings))))] +} + pub fn foo() {} |
