]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/test-lists.rs
change the format of the linked issue number
[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 // ignore-tidy-linelength
14
15 // @has foo/fn.f.html
16 // @has - "<pre class='rust fn'>pub fn f()</pre><div class='docblock'><ol><li>list<ol><li>fooooo</li><li>x</li></ol></li><li>foo</li></ol>"
17 /// 1. list
18 ///     1. fooooo
19 ///     2. x
20 /// 2. foo
21 pub fn f() {}
22
23 // @has foo/fn.foo2.html
24 // @has - "<pre class='rust fn'>pub fn foo2()</pre><div class='docblock'><ul><li>normal list<ul><li><p>sub list</p></li><li><p>new elem still same elem</p><p>and again same elem!</p></li></ul></li><li>new big elem</li></ul>"
25 /// * normal list
26 ///     * sub list
27 ///     * new elem
28 ///       still same elem
29 ///
30 ///       and again same elem!
31 /// * new big elem
32 pub fn foo2() {}