Skip to content

Commit

Permalink
Revert "remove kev's regression test"
Browse files Browse the repository at this point in the history
This reverts commit 5914fd7.
  • Loading branch information
kevaundray committed Oct 10, 2023
1 parent d36cdec commit 9b29103
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "slices_mutable_return_error"
type = "bin"
authors = [""]
compiler_version = "0.1"

[dependencies]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Issue 2911
fn main() {
let mut slice : &mut [Field] = &mut [];
slice = &mut (*slice).push_back(1);
assert((*slice)[0] == 1);
}

0 comments on commit 9b29103

Please sign in to comment.