mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-13 23:02:43 +00:00
48 lines
923 B
Rust
48 lines
923 B
Rust
|
#![warn(clippy::doc_lazy_continuation)]
|
||
|
|
||
|
/// > blockquote with
|
||
|
/// lazy continuation
|
||
|
//~^ ERROR: doc quote missing `>` marker
|
||
|
fn first() {}
|
||
|
|
||
|
/// > blockquote with no
|
||
|
/// > lazy continuation
|
||
|
fn first_nowarn() {}
|
||
|
|
||
|
/// > blockquote with no
|
||
|
///
|
||
|
/// lazy continuation
|
||
|
fn two_nowarn() {}
|
||
|
|
||
|
/// > nest here
|
||
|
/// >
|
||
|
/// > > nest here
|
||
|
/// > lazy continuation
|
||
|
//~^ ERROR: doc quote missing `>` marker
|
||
|
fn two() {}
|
||
|
|
||
|
/// > nest here
|
||
|
/// >
|
||
|
/// > > nest here
|
||
|
/// lazy continuation
|
||
|
//~^ ERROR: doc quote missing `>` marker
|
||
|
fn three() {}
|
||
|
|
||
|
/// > * > nest here
|
||
|
/// lazy continuation
|
||
|
//~^ ERROR: doc quote missing `>` marker
|
||
|
fn four() {}
|
||
|
|
||
|
/// > * > nest here
|
||
|
/// lazy continuation
|
||
|
//~^ ERROR: doc quote missing `>` marker
|
||
|
fn four_point_1() {}
|
||
|
|
||
|
/// * > nest here lazy continuation
|
||
|
fn five() {}
|
||
|
|
||
|
/// 1. > nest here
|
||
|
/// lazy continuation (this results in strange indentation, but still works)
|
||
|
//~^ ERROR: doc quote missing `>` marker
|
||
|
fn six() {}
|