forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for rust-lang#136899
- Loading branch information
1 parent
54f59c6
commit 17cf100
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
//! ``` |