Skip to content

Commit d2ad0fc

Browse files
danielsntedinski
authored andcommitted
Add a test for issue 707 (rust-lang#713)
1 parent 0752a9b commit d2ad0fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/rmc/Slice/fixme_issue_707.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
4+
fn main() {
5+
let [x, y @ .., z] = [1, 2, 3, 4];
6+
assert!(x == 1);
7+
assert!(y[0] == 2);
8+
assert!(y[1] == 3);
9+
assert!(z == 4);
10+
}

0 commit comments

Comments
 (0)