]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/table-in-docblock.rs
Migrate `rustc_parse` to derive diagnostics
[rust.git] / tests / rustdoc / table-in-docblock.rs
1 #![crate_name = "foo"]
2
3 // @has foo/struct.Foo.html
4 // @count - '//*[@class="docblock"]/div/table' 2
5 // @!has - '//*[@class="docblock"]/table' ''
6 /// | hello | hello2 |
7 /// | ----- | ------ |
8 /// | data  | data2  |
9 pub struct Foo;
10
11 impl Foo {
12     /// | hello | hello2 |
13     /// | ----- | ------ |
14     /// | data  | data2  |
15     pub fn foo(&self) {}
16 }