Skip to content

Commit

Permalink
Add regression test for #136899
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 12, 2025
1 parent 54f59c6 commit 17cf100
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/rustdoc-ui/hashtag-doctest.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// This test ensures that `##` are not emitting a warning when generating
// docs with the 2024 edition (or any edition).
// Regression test for <https://github.com/rust-lang/rust/issues/136899>.

//@ check-pass
//@revisions: edition2021 edition2024
//@[edition2021] edition:2021
//@[edition2024] edition:2024

#![deny(warnings)]

//! Test
//!
//! ```
//! ##[allow(dead_code)]
//! println!("hello world");
//! ```

0 comments on commit 17cf100

Please sign in to comment.