]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/check-rule-image-footnote.rs
Remove unused import.
[rust.git] / src / test / rustdoc / check-rule-image-footnote.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 - '<p>markdown test</p>'
17 // @has - '<p>this is a <a href="https://example.com" title="this is a title">link</a>.</p>'
18 // @has - '<hr />'
19 // @has - '<p>a footnote<sup id="supref1"><a href="#ref1">1</a></sup>.</p>'
20 // @has - '<p>another footnote<sup id="supref2"><a href="#ref2">2</a></sup>.</p>'
21 // @has - '<p><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="Rust" /></p>'
22 // @has - '<div class="footnotes"><hr><ol><li id="ref1">'
23 // @has - '<p>Thing&nbsp;<a href="#supref1" rev="footnote">↩</a></p></li><li id="ref2">'
24 // @has - '<p>Another Thing&nbsp;<a href="#supref2" rev="footnote">↩</a></p></li></ol></div>'
25 /// markdown test
26 ///
27 /// this is a [link].
28 ///
29 /// [link]: https://example.com "this is a title"
30 ///
31 /// -----------
32 ///
33 /// a footnote[^footnote].
34 ///
35 /// another footnote[^footnotebis].
36 ///
37 /// [^footnote]: Thing
38 ///
39 ///
40 /// [^footnotebis]: Another Thing
41 ///
42 ///
43 /// ![Rust](https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png)
44 pub fn f() {}