]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/test-lists.rs
Auto merge of #107768 - matthiaskrgr:rollup-9u4cal4, r=matthiaskrgr
[rust.git] / tests / rustdoc / test-lists.rs
1 #![crate_name = "foo"]
2
3 // @has foo/fn.f.html
4 // @has - //ol/li "list"
5 // @has - //ol/li/ol/li "fooooo"
6 // @has - //ol/li/ol/li "x"
7 // @has - //ol/li "foo"
8 /// 1. list
9 ///     1. fooooo
10 ///     2. x
11 /// 2. foo
12 pub fn f() {}
13
14 // @has foo/fn.foo2.html
15 // @has - //ul/li "normal list"
16 // @has - //ul/li/ul/li "sub list"
17 // @has - //ul/li/ul/li "new elem still same elem and again same elem!"
18 // @has - //ul/li "new big elem"
19 /// * normal list
20 ///     * sub list
21 ///     * new elem
22 ///       still same elem
23 ///
24 ///       and again same elem!
25 /// * new big elem
26 pub fn foo2() {}