Skip to content

Commit 79d897b

Browse files
committed
Add test for #105022
1 parent 52be350 commit 79d897b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// The Docs
2+
pub trait HasDocs {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/105022>
2+
// aux-build: trait_with_docs.rs
3+
4+
extern crate trait_with_docs;
5+
6+
pub struct Local;
7+
8+
impl trait_with_docs::HasDocs for Local {}
9+
10+
// @!has "$.index[*][?(@.name == 'HasDocs')]"

0 commit comments

Comments
 (0)