We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
static
1 parent 15b663e commit 51ea7c1Copy full SHA for 51ea7c1
tests/rustdoc-json/statics/statics.rs
@@ -0,0 +1,10 @@
1
+//@ is '$.index[*][?(@.name=="A")].inner.static.type.primitive' '"i32"'
2
+//@ is '$.index[*][?(@.name=="A")].inner.static.is_mutable' false
3
+//@ is '$.index[*][?(@.name=="A")].inner.static.expr' '"5"'
4
+pub static A: i32 = 5;
5
+
6
+//@ is '$.index[*][?(@.name=="B")].inner.static.type.primitive' '"u32"'
7
+//@ is '$.index[*][?(@.name=="B")].inner.static.is_mutable' true
8
+// Expr value isn't gaurenteed, it'd be fine to change it.
9
+//@ is '$.index[*][?(@.name=="B")].inner.static.expr' '"_"'
10
+pub static mut B: u32 = 2 + 3;
0 commit comments