This website requires JavaScript.
Explore
Sign In
mirror
/
rust
mirror of
https://github.com/rust-lang/rust
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
borrowck
/
borrowck-fixed-length-vecs.rs
8 lines
93 B
Rust
Raw
Permalink
Blame
History
//@ run-pass
pub
fn
main
(
)
{
let
x
=
[
22
]
;
let
y
=
&
x
[
0
]
;
assert_eq!
(
*
y
,
22
)
;
}
Reference in New Issue
View Git Blame
Copy Permalink