Skip to content

Commit fa3e6a8

Browse files
Add regression test for #136899
1 parent 7ec3695 commit fa3e6a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This test ensures that `##` are not emitting a warning when generating
2+
// docs with the 2024 edition.
3+
// Regression test for <https://github.com/rust-lang/rust/issues/136899>.
4+
5+
//@ check-pass
6+
7+
#![deny(warnings)]
8+
9+
//! Test
10+
//!
11+
//! ```
12+
//! ##[allow(dead_code)]
13+
//! println!("hello world");
14+
//! ```

0 commit comments

Comments
 (0)