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.
2 parents cd664e8 + 86f3c35 commit afb3143Copy full SHA for afb3143
tests/pass/vec.rs
@@ -162,6 +162,11 @@ fn reverse() {
162
assert!(v[0].0 == 49);
163
}
164
165
+fn miri_issue_2759() {
166
+ let mut input = "1".to_string();
167
+ input.replace_range(0..0, "0");
168
+}
169
+
170
fn main() {
171
assert_eq!(vec_reallocate().len(), 5);
172
@@ -191,4 +196,5 @@ fn main() {
191
196
swap();
192
197
swap_remove();
193
198
reverse();
199
+ miri_issue_2759();
194
200
0 commit comments