summary refs log tree commit diff
path: root/src/test/run-make/rustdoc-scrape-examples-ordering/examples
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2021-10-08 20:49:05 -0700
committerWill Crichton <wcrichto@cs.stanford.edu>2021-10-08 20:49:05 -0700
commitb1616f34efc5bc0d0328c1bba94176c62be2b3d0 (patch)
tree159bf117f5a97edb7569c99731b87db3de404e3d /src/test/run-make/rustdoc-scrape-examples-ordering/examples
parent9e4958a3e6c48630b777244adad80d1381ada32a (diff)
downloadrust-b1616f34efc5bc0d0328c1bba94176c62be2b3d0.tar.gz
rust-b1616f34efc5bc0d0328c1bba94176c62be2b3d0.zip
Add test for ordering of examples, simplify with single scrape.mk file
Diffstat (limited to 'src/test/run-make/rustdoc-scrape-examples-ordering/examples')
-rw-r--r--src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs9
-rw-r--r--src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs4
2 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs b/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs
new file mode 100644
index 00000000000..d6d59820876
--- /dev/null
+++ b/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs
@@ -0,0 +1,9 @@
+fn main() {
+    foobar::ok();
+
+    // this is a
+
+    // BIG
+
+    // item
+}
diff --git a/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs b/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs
new file mode 100644
index 00000000000..a1133117f86
--- /dev/null
+++ b/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs
@@ -0,0 +1,4 @@
+fn main() {
+    foobar::ok();
+    // small item
+}