rust/tests/rustdoc-json/enums/doc_link_to_foreign_variant.rs
Alona Enraght-Moony 7ab71c417b tests/rustdoc-json: replace $.index[*][? with $.index[?
Done automatically with VSCode.
2025-03-21 00:48:09 +00:00

12 lines
289 B
Rust

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