We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 746ea5b + 7a2c2f8 commit ce031b4Copy full SHA for ce031b4
rust-version
@@ -1 +1 @@
1
-172acf8f61018df3719e42e633ffd62ebecaa1e7
+828461b4b27c4a955587887936e54057efc5e2c1
tests/run-pass/vec.rs
@@ -130,6 +130,12 @@ fn push_str_ptr_stable() {
130
assert_eq!(format!("{}", hello), "hello");
131
}
132
133
+fn sort() {
134
+ let mut v = vec![1; 20];
135
+ v.push(0);
136
+ v.sort();
137
+}
138
+
139
fn main() {
140
assert_eq!(vec_reallocate().len(), 5);
141
@@ -154,4 +160,6 @@ fn main() {
154
160
vec_extend_ptr_stable();
155
161
vec_truncate_ptr_stable();
156
162
push_str_ptr_stable();
163
164
+ sort();
157
165
0 commit comments