We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a576dfd commit 4a64c79Copy full SHA for 4a64c79
tests/rustdoc/enum-variant-value.rs
@@ -0,0 +1,15 @@
1
+// This test ensures that the variant value is displayed with underscores but without
2
+// a type name at the end.
3
+
4
+#![crate_name = "foo"]
5
6
+// @has 'foo/enum.B.html'
7
+// @has - '//*[@class="rust item-decl"]/code' 'A = 12,'
8
+// @has - '//*[@class="rust item-decl"]/code' 'C = 1_245,'
9
+// @matches - '//*[@id="variant.A"]/h3' '^A = 12$'
10
+// @matches - '//*[@id="variant.C"]/h3' '^C = 1_245$'
11
+pub enum B {
12
+ A = 12,
13
+ B,
14
+ C = 1245,
15
+}
0 commit comments