rust-clippy/tests/ui/four_forward_slashes_first_line.fixed

8 lines
288 B
Rust
Raw Normal View History

2023-07-13 00:39:19 +00:00
/// borked doc comment on the first line. doesn't combust!
fn a() {}
//@run-rustfix
// This test's entire purpose is to make sure we don't panic if the comment with four slashes
// extends to the first line of the file. This is likely pretty rare in production, but an ICE is an
// ICE.