Add regression test for #136899
This commit is contained in:
parent
54f59c6dda
commit
17cf100f11
1 changed files with 17 additions and 0 deletions
17
tests/rustdoc-ui/hashtag-doctest.rs
Normal file
17
tests/rustdoc-ui/hashtag-doctest.rs
Normal file
|
@ -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");
|
||||
//! ```
|
Loading…
Add table
Add a link
Reference in a new issue