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 633b9a8 commit 8f22582Copy full SHA for 8f22582
doc/rust.md
@@ -1111,7 +1111,17 @@ const bit1: uint = 1 << 0;
1111
const bit2: uint = 1 << 1;
1112
1113
const bits: [uint * 2] = [bit1, bit2];
1114
-const bits_r: &[uint] = &bits;
+const string: &str = "bitstring";
1115
+
1116
+struct BitsNStrings {
1117
+ mybits: [uint *2],
1118
+ mystring: &str
1119
+}
1120
1121
+const bits_n_strings: BitsNStrings = BitsNStrings {
1122
+ mybits: bits,
1123
+ mystring: string
1124
+};
1125
~~~~
1126
1127
### Traits
0 commit comments