summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doctest/doctest-include-43153.rs
blob: ec21a68c4ee51faf0fb126c711441ce8da1fe9dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// https://github.com/rust-lang/rust/issues/43153

// 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;