This commit is contained in:
Nixon Enraght-Moony 2022-12-02 17:05:37 +00:00
parent 52be350445
commit 79d897b22a
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,2 @@
/// The Docs
pub trait HasDocs {}

View File

@ -0,0 +1,10 @@
// Regression test for <https://github.com/rust-lang/rust/issues/105022>
// aux-build: trait_with_docs.rs
extern crate trait_with_docs;
pub struct Local;
impl trait_with_docs::HasDocs for Local {}
// @!has "$.index[*][?(@.name == 'HasDocs')]"