Sign in
fuchsia
/
third_party
/
rust
/
794e22862c9fed17cdb8d4f3d650851c667bc78e
/
.
/
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}`
}