index
:
rust
this commit
auto
automation/bors/try
automation/bors/try-merge
beta
cargo_update
lcnr/rustc-dev-guide
master
perf-tmp
stable
try
try-perf
https://github.com/rust-lang/rust
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
tests
/
ui
/
borrowck
/
borrowck-fixed-length-vecs.rs
blob: 3441ae0e3bba9d7ab5854f17c0a58c95adffda0d (
plain
)
1
2
3
4
5
6
7
//@ run-pass
pub
fn
main
()
{
let
x
=
[
22
];
let
y
=
&
x
[
0
];
assert_eq!
(
*
y
,
22
);
}