summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-json/intra-doc-links/foreign_variant.rs
blob: e29682313386806d718d89fb08bdf36a0743439e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Regression test for <https://github.com/rust-lang/rust/issues/105025>
// aux-build: enum_variant_in_trait_method.rs

extern crate enum_variant_in_trait_method;

pub struct Local;

/// local impl
impl enum_variant_in_trait_method::Trait for Local {}

// @!has "$.index[*][?(@.name == 'Trait')]"
// @!has "$.index[*][?(@.name == 'method')]"
// @count "$.index[*][?(@.docs == 'local impl')].inner.items[*]" 0