summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-43153.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/issue-43153.rs')
-rw-r--r--tests/rustdoc/issue-43153.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-43153.rs b/tests/rustdoc/issue-43153.rs
new file mode 100644
index 000000000..0fe680f10
--- /dev/null
+++ b/tests/rustdoc/issue-43153.rs
@@ -0,0 +1,10 @@
+// Test that `include!` in a doc test searches relative to the directory in
+// which the test is declared.
+
+// compile-flags:--test
+
+/// ```rust
+/// include!("auxiliary/empty.rs");
+/// fn main() {}
+/// ```
+pub struct Foo;