Skip to content

Commit e3695d3

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

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//! Test
2+
//!
3+
//! ```
4+
//! ##[allow(dead_code)]
5+
//! println!("hello world");
6+
//! ```

tests/run-make/rustdoc-2024-hash-doctest/output.stdout

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
use run_make_support::{bare_rustdoc, diff};
6+
7+
fn main() {
8+
let out = bare_rustdoc().input("foo.rs").arg("-Zunstable-options").edition("2024").run().stdout_utf8();
9+
diff()
10+
.expected_file("output.stdout")
11+
.actual_text("actual", out)
12+
.run();
13+
}

0 commit comments

Comments
 (0)