summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/decl-trailing-whitespace.rs
blob: e47edc1321851744137066320b05838c0084ac67 (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
// Regression test for <https://github.com/rust-lang/rust/issues/98803>.

#![crate_name = "foo"]

pub struct Error;

// @has 'foo/trait.Write.html'

pub trait Write {
    // @snapshot 'declaration' - '//*[@class="item-decl"]//code'
    fn poll_write(
        self: Option<String>,
        cx: &mut Option<String>,
        buf: &mut [usize]
    ) -> Option<Result<usize, Error>>;
    fn poll_flush(
        self: Option<String>,
        cx: &mut Option<String>
    ) -> Option<Result<(), Error>>;
    fn poll_close(
        self: Option<String>,
        cx: &mut Option<String>,
    ) -> Option<Result<(), Error>>;

    fn poll_write_vectored(
        self: Option<String>,
        cx: &mut Option<String>,
        bufs: &[usize]
    ) -> Option<Result<usize, Error>> {}
}