Sign in
fuchsia
/
third_party
/
rust
/
846ea58cd5ae1c8d72e55dd6cf1ee35ffbca3d63
/
.
/
src
/
test
/
ui
/
str
/
str-idx.rs
blob: 2ea80494e03cbadb4b0d940edd27f59617804aac [
file
] [
log
] [
blame
]
pub
fn
main
()
{
let
s
:
&
str
=
"hello"
;
let
c
:
u8
=
s
[
4
];
//~ ERROR the type `str` cannot be indexed by `{integer}`
}