File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
src/test/rustdoc-json/enums Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ pub enum Color {
2
+ Red ,
3
+ Green ,
4
+ Blue ,
5
+ }
Original file line number Diff line number Diff line change
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')]"
Original file line number Diff line number Diff line change
1
+ // aux-build: color.rs
2
+
3
+ extern crate color;
4
+
5
+ // @is "$.index[*][?(@.inner.name == 'Red')].kind" '"import"'
6
+ pub use color:: Color :: Red ;
7
+
8
+ // @!has "$.index[*][?(@.name == 'Red')]"
9
+ // @!has "$.index[*][?(@.name == 'Color')]"
You can’t perform that action at this time.
0 commit comments