rustdoc: add test case for masked blanket impl

This commit is contained in:
Michael Howell 2022-10-19 08:43:21 -07:00
parent d7dd01fe8b
commit 8de7a4f21c
2 changed files with 5 additions and 0 deletions

View File

@ -8,3 +8,7 @@ pub trait MaskedTrait {
impl MaskedTrait for String {
fn masked_method() {}
}
pub trait MaskedBlanketTrait {}
impl<T> MaskedBlanketTrait for T {}

View File

@ -10,6 +10,7 @@ extern crate masked;
// @!hasraw 'search-index.js' 'masked_method'
// @!hasraw 'foo/struct.String.html' 'MaskedTrait'
// @!hasraw 'foo/struct.String.html' 'MaskedBlanketTrait'
// @!hasraw 'foo/struct.String.html' 'masked_method'
pub use std::string::String;