Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
issues
/
issue-5550.rs
blob: 41de8ee5d32c9749cfdc5b6d852383c3f9ecbdf5 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
unused_assignments
)]
pub
fn
main
()
{
let
s
:
String
=
"foobar"
.
to_string
();
let
mut
t
:
&
str
=
&
s
;
t
=
&
t
[
0.
.
3
];
// for master: str::view(t, 0, 3) maybe
}