Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
range-index-instead-of-colon.rs
blob: 0594d4f4c9cf7f8c595076513b23082114a8ae39 [
file
] [
log
] [
blame
] [
edit
]
//@ edition:2021
fn
main
()
{
&[
1
,
2
,
3
][
1
:
2
];
//~^ ERROR: expected one of
//~| HELP: you might have meant a range expression
}