rust/tests/rustdoc-json/enums/doc_link_to_foreign_variant.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
297 B
Rust
Raw Normal View History

// 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')]"