add miri regression test
This commit is contained in:
parent
47014b1bb9
commit
2d54b7ceb2
@ -162,6 +162,11 @@ fn reverse() {
|
||||
assert!(v[0].0 == 49);
|
||||
}
|
||||
|
||||
fn miri_issue_2759() {
|
||||
let mut input = "1".to_string();
|
||||
input.replace_range(0..0, "0");
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(vec_reallocate().len(), 5);
|
||||
|
||||
@ -191,4 +196,5 @@ fn main() {
|
||||
swap();
|
||||
swap_remove();
|
||||
reverse();
|
||||
miri_issue_2759();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user