]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/enums/doc_link_to_foreign_variant.rs
Rollup merge of #107687 - cjgillot:sroa-2, r=oli-obk
[rust.git] / tests / rustdoc-json / enums / doc_link_to_foreign_variant.rs
1 // aux-build: color.rs
2
3 //! The purpose of this test it to have a link to [a foreign variant](Red).
4
5 extern crate color;
6 use color::Color::Red;
7
8 // @set red = "$.index[*][?(@.inner.is_crate == true)].links.Red"
9
10 // @!has "$.index[*][?(@.name == 'Red')]"
11 // @!has "$.index[*][?(@.name == 'Color')]"