summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/table-in-docblock.rs
blob: 194f49f16d007cb6f6f603f776bcae982471b923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![crate_name = "foo"]

// @has foo/struct.Foo.html
// @count - '//*[@class="docblock"]/div/table' 2
// @!has - '//*[@class="docblock"]/table' ''
/// | hello | hello2 |
/// | ----- | ------ |
/// | data  | data2  |
pub struct Foo;

impl Foo {
    /// | hello | hello2 |
    /// | ----- | ------ |
    /// | data  | data2  |
    pub fn foo(&self) {}
}