summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/nul-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/nul-error.rs')
-rw-r--r--tests/rustdoc/nul-error.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc/nul-error.rs b/tests/rustdoc/nul-error.rs
new file mode 100644
index 000000000..3d30f5f6b
--- /dev/null
+++ b/tests/rustdoc/nul-error.rs
@@ -0,0 +1,8 @@
+// build-aux-docs
+// ignore-cross-compile
+
+#![crate_name = "foo"]
+
+// @has foo/fn.foo.html '//code' ''
+#[doc = "Attempted to pass a string containing `\0`"]
+pub fn foo() {}