summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-json/enums/doc_link_to_foreign_variant.rs
blob: 470b195a2924782f56db1cd6bc2772fed8acba20 (plain)
1
2
3
4
5
6
7
8
9
10
11
// aux-build: color.rs

//! The purpose of this test it to have a link to [a foreign variant](Red).

extern crate color;
use color::Color::Red;

// @set red = "$.index[*][?(@.inner.is_crate == true)].links.Red"

// @!has "$.index[*][?(@.name == 'Red')]"
// @!has "$.index[*][?(@.name == 'Color')]"