We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ec3695 commit fa3e6a8Copy full SHA for fa3e6a8
tests/rustdoc-ui/2024-hashtag-doctest.rs
@@ -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