Using `include!` shouldn't affect the test. It was only added because: > I replicated how it was performed in libstd. Since it's the main > target of this fix, I thought it was the best way. <https://github.com/rust-lang/rust/pull/52827/files#r207647331> But it's unnecessary and adds unnecessary indirection.
9 lines
244 B
Rust
9 lines
244 B
Rust
#![feature(rustdoc_internals)]
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
// @has foo/primitive.i32.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
|
|
|
|
#[doc(primitive = "i32")]
|
|
/// Some useless docs, wouhou!
|
|
mod i32 {}
|