rust/tests/rustdoc/doctest/doctest-include-43153.rs
2023-11-23 14:56:03 -07:00

13 lines
273 B
Rust

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