Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
drop
/
drop-with-type-ascription-1.rs
blob: e5a1a48df5616484acac8cbd4069b50abf0c16fa [
file
] [
log
] [
blame
]
// run-pass
fn
main
()
{
let
foo
=
"hello"
.
to_string
();
let
foo
:
Vec
<&
str
>
=
foo
.
split_whitespace
().
collect
();
let
invalid_string
=
&
foo
[
0
];
assert_eq
!(*
invalid_string
,
"hello"
);
}