]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/test-lists.rs
Rollup merge of #41135 - japaric:unstable-docs, r=steveklabnik
[rust.git] / src / test / rustdoc / test-lists.rs
1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![crate_name = "foo"]
12
13 // @has foo/fn.f.html
14 // @has - //ol/li "list"
15 // @has - //ol/li/ol/li "fooooo"
16 // @has - //ol/li/ol/li "x"
17 // @has - //ol/li "foo"
18 /// 1. list
19 ///     1. fooooo
20 ///     2. x
21 /// 2. foo
22 pub fn f() {}
23
24 // @has foo/fn.foo2.html
25 // @has - //ul/li "normal list"
26 // @has - //ul/li/ul/li "sub list"
27 // @has - //ul/li/ul/li "new elem still same elem and again same elem!"
28 // @has - //ul/li "new big elem"
29 /// * normal list
30 ///     * sub list
31 ///     * new elem
32 ///       still same elem
33 ///
34 ///       and again same elem!
35 /// * new big elem
36 pub fn foo2() {}