rust/src/test/rustdoc/primitive/primitive-generic-impl.rs
Noah Lev 959dc77e6e Remove unnecessary use of include! in rustdoc test
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.
2021-11-28 11:49:12 -08:00

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 {}