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.
1 parent 706a23e commit 380d917Copy full SHA for 380d917
src/test/rmc/SubSlice/subslice2_fixme.rs
@@ -27,8 +27,8 @@
27
// * #c_type: unsigned_long_int
28
// * value: 1
29
//
30
-// Full support for subslice projection to be added in
31
-// https://github.com/model-checking/rmc/issues/357
+// This issue is captured in:
+// https://github.com/model-checking/rmc/issues/708
32
33
fn main() {
34
let arr = [1, 2, 3];
src/test/rmc/SubSlice/subslice3.rs
@@ -0,0 +1,12 @@
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 slice = &[1, 2, 3][..];
6
+ if let [head, tail @ ..] = slice {
7
+ assert!(head == &slice[0]);
8
+ assert!(tail == &slice[1..]);
9
+ } else {
10
+ unreachable!();
11
+ }
12
+}
0 commit comments