about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/doc/doc_lazy_blockquote.fixed
blob: 9d6e8637608fbc9be6298787463491728084355b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#![warn(clippy::doc_lazy_continuation)]

/// > blockquote with
/// > lazy continuation
//~^ ERROR: doc quote line without `>` 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 line without `>` marker
fn two() {}

/// > nest here
/// >
/// > > nest here
/// > > lazy continuation
//~^ ERROR: doc quote line without `>` marker
fn three() {}

/// >   * > nest here
/// >     > lazy continuation
//~^ ERROR: doc quote line without `>` marker
fn four() {}

/// > * > nest here
/// >   > lazy continuation
//~^ ERROR: doc quote line without `>` 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 line without `>` marker
fn six() {}