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 7ec3695 commit fa3e6a8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/rustdoc-ui/2024-hashtag-doctest.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This test ensures that `##` are not emitting a warning when generating
// docs with the 2024 edition.
// Regression test for <https://github.com/rust-lang/rust/issues/136899>.

//@ check-pass

#![deny(warnings)]

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

0 comments on commit fa3e6a8

Please sign in to comment.