We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5ce3e1 commit 296adbaCopy full SHA for 296adba
src/test/rustdoc/const-value-display.rs
@@ -0,0 +1,9 @@
1
+#![crate_name = "foo"]
2
+
3
+// @has 'foo/constant.HOUR_IN_SECONDS.html'
4
+// @has - '//*[@class="docblock item-decl"]//code' 'pub const HOUR_IN_SECONDS: u64 = 60 * 60; // 3_600u64'
5
+pub const HOUR_IN_SECONDS: u64 = 60 * 60;
6
7
+// @has 'foo/constant.NEGATIVE.html'
8
+// @has - '//*[@class="docblock item-decl"]//code' 'pub const NEGATIVE: i64 = -60 * 60; // -3_600i64'
9
+pub const NEGATIVE: i64 = -60 * 60;
0 commit comments