random forgotten test case
This commit is contained in:
parent
2a128fa205
commit
6c056fba4d
8
src/test/run-pass/borrowck-fixed-length-vecs.rs
Normal file
8
src/test/run-pass/borrowck-fixed-length-vecs.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// xfail-fast (compile-flags unsupported on windows)
|
||||
// compile-flags:--borrowck=err
|
||||
|
||||
fn main() {
|
||||
let x = [22]/1;
|
||||
let y = &x[0];
|
||||
assert *y == 22;
|
||||
}
|
Loading…
Reference in New Issue
Block a user