We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69df0f2 commit d958f37Copy full SHA for d958f37
src/test/rustdoc-json/enums/auxiliary/color.rs
@@ -0,0 +1,5 @@
1
+pub enum Color {
2
+ Red,
3
+ Green,
4
+ Blue,
5
+}
src/test/rustdoc-json/enums/doc_link_to_foreign_variant.rs
@@ -0,0 +1,11 @@
+// aux-build: color.rs
+
+//! The purpose of this test it to have a link to [a foreign variant](Red).
+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')]"
src/test/rustdoc-json/enums/use_variant_foreign.rs
@@ -0,0 +1,9 @@
+// @is "$.index[*][?(@.inner.name == 'Red')].kind" '"import"'
+pub use color::Color::Red;
0 commit comments