2024-05-06 15:38:18 -05:00
|
|
|
#![warn(clippy::doc_lazy_continuation)]
|
|
|
|
|
|
|
|
/// > blockquote with
|
|
|
|
/// > lazy continuation
|
2024-06-27 18:35:43 -05:00
|
|
|
//~^ ERROR: doc quote line without `>` marker
|
2024-05-06 15:38:18 -05:00
|
|
|
fn first() {}
|
|
|
|
|
|
|
|
/// > blockquote with no
|
|
|
|
/// > lazy continuation
|
|
|
|
fn first_nowarn() {}
|
|
|
|
|
|
|
|
/// > blockquote with no
|
|
|
|
///
|
|
|
|
/// lazy continuation
|
|
|
|
fn two_nowarn() {}
|
|
|
|
|
|
|
|
/// > nest here
|
|
|
|
/// >
|
|
|
|
/// > > nest here
|
|
|
|
/// > > lazy continuation
|
2024-06-27 18:35:43 -05:00
|
|
|
//~^ ERROR: doc quote line without `>` marker
|
2024-05-06 15:38:18 -05:00
|
|
|
fn two() {}
|
|
|
|
|
|
|
|
/// > nest here
|
|
|
|
/// >
|
|
|
|
/// > > nest here
|
|
|
|
/// > > lazy continuation
|
2024-06-27 18:35:43 -05:00
|
|
|
//~^ ERROR: doc quote line without `>` marker
|
2024-05-06 15:38:18 -05:00
|
|
|
fn three() {}
|
|
|
|
|
|
|
|
/// > * > nest here
|
|
|
|
/// > > lazy continuation
|
2024-06-27 18:35:43 -05:00
|
|
|
//~^ ERROR: doc quote line without `>` marker
|
2024-05-06 15:38:18 -05:00
|
|
|
fn four() {}
|
|
|
|
|
|
|
|
/// > * > nest here
|
|
|
|
/// > > lazy continuation
|
2024-06-27 18:35:43 -05:00
|
|
|
//~^ ERROR: doc quote line without `>` marker
|
2024-05-06 15:38:18 -05:00
|
|
|
fn four_point_1() {}
|
|
|
|
|
|
|
|
/// * > nest here lazy continuation
|
|
|
|
fn five() {}
|
|
|
|
|
|
|
|
/// 1. > nest here
|
|
|
|
/// > lazy continuation (this results in strange indentation, but still works)
|
2024-06-27 18:35:43 -05:00
|
|
|
//~^ ERROR: doc quote line without `>` marker
|
2024-05-06 15:38:18 -05:00
|
|
|
fn six() {}
|