about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-03-29 19:48:06 -0600
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-03-29 19:48:06 -0600
commit08a741eabf3c223650bb29c5df30c8fd414cd86a (patch)
treef51bf835c29b0641c7fd655caf73cb5aa4df7694 /src/test/rustdoc
parentcf69238b82661f5fcb6488e31ef27977f5d2cb81 (diff)
downloadrust-08a741eabf3c223650bb29c5df30c8fd414cd86a.tar.gz
rust-08a741eabf3c223650bb29c5df30c8fd414cd86a.zip
Add support for image, rules and footnotes
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/check-rule-image-footnote.rs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/test/rustdoc/check-rule-image-footnote.rs b/src/test/rustdoc/check-rule-image-footnote.rs
new file mode 100644
index 00000000000..629e1a64e6f
--- /dev/null
+++ b/src/test/rustdoc/check-rule-image-footnote.rs
@@ -0,0 +1,35 @@
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![crate_name = "foo"]
+
+// @has foo/fn.f.html
+// @has - '<p>hard break: after hard break</p><hr>'
+// @has - '<img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="Rust">'
+// @has - '<li id="ref1">'
+// @has - '<sup id="supref1"><a href="#ref1">1</a></sup>'
+/// markdown test
+///
+/// this is a [link].
+///
+/// [link]: https://example.com "this is a title"
+///
+/// hard break:
+/// after hard break
+///
+/// -----------
+///
+/// a footnote[^footnote].
+///
+/// [^footnote]: Thing
+///
+/// ![Rust](https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png)
+#[deprecated(note = "Struct<T>")]
+pub fn f() {}