about summary refs log tree commit diff
path: root/tests/rustdoc-json/enums/doc_link_to_foreign_variant.rs
blob: 6ecd98fadf5b8218d273427a8de38a01f41c3c82 (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.module.is_crate)].links.Red"

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