about summary refs log tree commit diff
path: root/tests/rustdoc/test_option_check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/test_option_check')
-rw-r--r--tests/rustdoc/test_option_check/bar.rs9
-rw-r--r--tests/rustdoc/test_option_check/test.rs18
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/rustdoc/test_option_check/bar.rs b/tests/rustdoc/test_option_check/bar.rs
new file mode 100644
index 00000000000..50a182cf7e0
--- /dev/null
+++ b/tests/rustdoc/test_option_check/bar.rs
@@ -0,0 +1,9 @@
+// compile-flags: --test
+// check-test-line-numbers-match
+
+/// This looks like another awesome test!
+///
+/// ```
+/// println!("foo?");
+/// ```
+pub fn foooo() {}
diff --git a/tests/rustdoc/test_option_check/test.rs b/tests/rustdoc/test_option_check/test.rs
new file mode 100644
index 00000000000..964e8e37ed5
--- /dev/null
+++ b/tests/rustdoc/test_option_check/test.rs
@@ -0,0 +1,18 @@
+// compile-flags: --test
+// check-test-line-numbers-match
+
+pub mod bar;
+
+/// This is a Foo;
+///
+/// ```
+/// println!("baaaaaar");
+/// ```
+pub struct Foo;
+
+/// This is a Bar;
+///
+/// ```
+/// println!("fooooo");
+/// ```
+pub struct Bar;