Skip to content

Commit 6c056fb

Browse files
committed
random forgotten test case
1 parent 2a128fa commit 6c056fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// xfail-fast (compile-flags unsupported on windows)
2+
// compile-flags:--borrowck=err
3+
4+
fn main() {
5+
let x = [22]/1;
6+
let y = &x[0];
7+
assert *y == 22;
8+
}

0 commit comments

Comments
 (0)