summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/doctest/test-compile-fail1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/doctest/test-compile-fail1.rs')
-rw-r--r--tests/rustdoc-ui/doctest/test-compile-fail1.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doctest/test-compile-fail1.rs b/tests/rustdoc-ui/doctest/test-compile-fail1.rs
new file mode 100644
index 000000000..a05390238
--- /dev/null
+++ b/tests/rustdoc-ui/doctest/test-compile-fail1.rs
@@ -0,0 +1,8 @@
+// compile-flags:--test
+
+/// ```
+/// assert!(true)
+/// ```
+pub fn f() {}
+
+pub fn f() {}